/* Flashlight login, ported from the flashlight-login source and skinned with the dashboard tokens. */
#page:has(.hc-login-scene){padding:0;max-width:none;width:100%}
body:has(.hc-login-scene) .mobile-header{display:none}
body:has(.hc-login-scene) .theme-fab{top:14px;bottom:auto}
/* Night is the dashboard dark palette; it also applies while the flashlight is on in the light theme. */
.hc-login-scene{--lg-ink:#0f172a;--lg-ink2:#475569;--lg-ink3:#64748b;--lg-accent:#2563eb;--lg-danger:#dc2626;--lg-card:rgb(246 250 255 / 40%);--lg-card-line:rgb(255 255 255 / 68%);--lg-card-shadow:0 32px 90px rgb(15 23 42 / 20%),0 8px 24px rgb(15 23 42 / 10%),inset 0 1px 0 rgb(255 255 255 / 90%);--lg-form:rgb(255 255 255 / 16%);--lg-field:rgb(255 255 255 / 58%);--lg-field-line:rgb(255 255 255 / 82%);--lg-field-shadow:inset 0 1px 1px rgb(255 255 255 / 50%),0 4px 12px rgb(15 23 42 / 4%);--lg-field-h:46px;position:relative;isolation:isolate;display:grid;place-items:center;align-content:center;gap:18px;min-height:100vh;min-height:100dvh;padding:24px;overflow:hidden;background:#8fbdf0;color:var(--lg-ink);font-family:inherit}
.hc-login-scene.is-night{--lg-ink:#f1f5f9;--lg-ink2:#cbd5e1;--lg-ink3:#94a3b8;--lg-accent:#60a5fa;--lg-danger:#f87171;--lg-card:rgb(11 18 32 / 72%);--lg-card-line:rgb(255 255 255 / 14%);--lg-card-shadow:0 32px 90px rgb(0 3 10 / 58%),0 8px 24px rgb(0 3 10 / 32%),inset 0 1px 0 rgb(215 240 255 / 12%);--lg-form:rgb(15 23 42 / 32%);--lg-field:rgb(30 41 59 / 56%);--lg-field-line:rgb(255 255 255 / 14%);--lg-field-shadow:inset 0 1px 0 rgb(255 255 255 / 5%),0 4px 12px rgb(0 8 20 / 6%)}
.hc-login-scene *{box-sizing:border-box}

.hc-login-card{position:relative;z-index:1;display:grid;grid-template-columns:43% 57%;width:min(860px,100%);min-height:480px;padding:12px;overflow:hidden;border:1px solid var(--lg-card-line);border-radius:30px;background:var(--lg-card);-webkit-backdrop-filter:blur(28px) saturate(135%);backdrop-filter:blur(28px) saturate(135%);box-shadow:var(--lg-card-shadow);transition:background-color .7s ease,border-color .7s ease,box-shadow .7s ease}
.hc-login-card::before{content:"";position:absolute;inset:0;background:linear-gradient(125deg,rgb(255 255 255 / 24%),transparent 35%,transparent 65%,rgb(255 255 255 / 8%));pointer-events:none}
.hc-login-panel{position:relative;min-height:456px;overflow:hidden;border:1px solid rgb(255 255 255 / 58%);border-radius:var(--radius-lg,18px);background:#1e3a5f;box-shadow:0 8px 24px rgb(15 23 42 / 12%),inset 0 0 0 1px rgb(255 255 255 / 18%);transition:border-color 1.4s ease,box-shadow 1.4s ease}
.hc-login-land{--celestial-drop:260px;position:absolute;inset:0;overflow:hidden;background:radial-gradient(ellipse at 18% 20%,rgb(244 250 255 / 72%),transparent 55%),linear-gradient(#8fbdf0,#cde2fa 45%,#d2e3f4 72%,#94b8e2)}
.hc-login-land::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 82% 14%,rgb(61 89 130 / 16%),transparent 52%),linear-gradient(#060b16,#0b1220 49%,#16233a 74%,#0b1220);opacity:0;transition:opacity 1.4s ease}
.hc-login-land::after{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(118deg,transparent 9%,rgb(255 255 255 / 15%) 10%,rgb(255 255 255 / 2%) 34%,transparent 35%,transparent 69%,rgb(255 255 255 / 9%) 70%,transparent 88%),radial-gradient(ellipse at 0 0,rgb(255 255 255 / 24%),transparent 60%);pointer-events:none}
.hc-login-land.is-page{z-index:0;pointer-events:none}
.hc-login-land.is-page::after{background:linear-gradient(118deg,transparent 12%,rgb(255 255 255 / 9%) 13%,transparent 38%,transparent 72%,rgb(255 255 255 / 5%) 73%,transparent 95%),linear-gradient(transparent 50%,rgb(3 20 34 / 16%) 100%)}
.hc-login-sky{clip-path:polygon(0 0,100% 0,100% 34.2%,87.75% 41.4%,70.5% 30.2%,57% 42.2%,39% 26%,22.75% 41.4%,12.75% 34.6%,0 47%);position:absolute;z-index:1;inset:0}
.hc-login-sun,.hc-login-moon{position:absolute;z-index:1;width:54px;height:54px;border-radius:50%}
.hc-login-sun{top:15%;left:23%;border:1px solid rgb(255 254 231 / 88%);background:url("/assets/login-scene/sun.svg") center/cover;box-shadow:inset 2px 3px 8px rgb(255 255 255 / 80%),inset -3px -5px 10px rgb(214 147 67 / 24%),0 0 35px 12px rgb(255 225 148 / 24%);transition:transform 1.1s cubic-bezier(.4,0,.2,1) .3s}
.hc-login-moon{top:14%;right:19%;border:1px solid rgb(230 251 255 / 84%);background:url("/assets/login-scene/moon.svg") center/cover;box-shadow:inset 2px 3px 7px rgb(255 255 255 / 70%),inset -4px -5px 10px rgb(80 122 158 / 28%),0 0 30px 8px rgb(198 220 248 / 18%);transform:translate(-24px,var(--celestial-drop));transition:transform 1.1s cubic-bezier(.4,0,.2,1)}
.hc-login-land img{position:absolute;z-index:2;inset:0;width:100%;height:100%;transition:opacity 1.4s ease}
.hc-login-land .hc-login-at-night{opacity:0}
.hc-login-panel::after{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(transparent 36%,rgb(3 20 34 / 16%) 53%,rgb(3 20 34 / 74%) 100%);pointer-events:none}
.hc-login-land::after,.hc-login-card::before{transition:opacity 1.4s ease}
.is-night .hc-login-land .hc-login-at-day{opacity:0}
.is-night .hc-login-land .hc-login-at-night{opacity:1}
.is-night .hc-login-land::before{opacity:1}
.is-night .hc-login-land::after{opacity:.18}
.is-night .hc-login-card::before{opacity:.2}
.is-night .hc-login-panel{border-color:rgb(169 207 235 / 15%);box-shadow:0 8px 24px rgb(0 5 14 / 28%),inset 0 0 0 1px rgb(255 255 255 / 4%)}
.is-night .hc-login-sun{transform:translate(26px,var(--celestial-drop));transition-delay:0s}
.is-night .hc-login-moon{transform:translate(0,0);transition-delay:.35s}
.hc-login-copy{position:absolute;z-index:4;top:75%;left:50%;width:min(82%,250px);color:#fff;text-align:center;transform:translate(-50%,-50%);text-shadow:0 2px 12px rgb(0 10 25 / 24%)}
.hc-login-copy h2{margin:0 0 16px;font-size:clamp(20px,2.5vw,24px);font-weight:700;line-height:1.2;letter-spacing:-.3px}
.hc-login-copy p{margin:0;font-size:13px;line-height:1.5}

.hc-login-form-panel{position:relative;display:flex;align-items:center;padding:40px clamp(28px,4vw,46px) 34px;border-radius:var(--radius-lg,18px);background:var(--lg-form);transition:background-color .7s ease}
.hc-login-form{width:100%}
.hc-login-form .sb-logo{margin:0 auto 14px}
.hc-login-form h1{margin:0 0 44px;color:var(--lg-ink);font-size:26px;font-weight:700;letter-spacing:-.5px;text-align:center}
.hc-login-field{position:relative;margin-bottom:14px}
.hc-login-owl{position:absolute;z-index:2;left:12px;bottom:calc(100% - 3.5px);width:50.4px;height:58.8px;opacity:0;pointer-events:none;filter:drop-shadow(0 2.8px 4.2px rgb(0 0 0 / 30%));transition:opacity .22s ease}
.hc-login-owl-art{position:relative;width:96px;height:112px;transform:scale(.525);transform-origin:top left}
.hc-login-owl-art img,.hc-login-owl-breath,.hc-login-owl-head,.hc-login-owl-eyes,.hc-login-owl-gaze{position:absolute;inset:0;width:100%;height:100%}
.hc-login-owl-art img{display:block}
.hc-login-owl-breath{transform-origin:48px 96px}
.hc-login-owl-head{transform-origin:48px 48px;transform:translate(var(--owl-head-x,0px),var(--owl-head-y,0px)) rotate(var(--owl-tilt,0deg));transition:transform .42s cubic-bezier(.2,.8,.2,1)}
.hc-login-owl-gaze{transform:translate(var(--owl-gaze-x,0px),var(--owl-gaze-y,0px));transition:transform .26s ease-out}
.hc-login-owl-eyes{transform-origin:48px 40px}
.hc-login-owl.is-lit .hc-login-owl-breath{animation:hc-owl-breathe 3.6s ease-in-out infinite}
.hc-login-owl.is-lit .hc-login-owl-eyes{animation:hc-owl-blink 5.8s ease-in-out infinite}
@keyframes hc-owl-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.018,1.025)}}
@keyframes hc-owl-blink{0%,40%,44%,87%,91%,100%{transform:scaleY(1)}42%,89%{transform:scaleY(.08)}}
.hc-login-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
/* The id outranks the dashboard's global dark-theme input rules (html[data-theme="dark"] input[type="email"]). */
#hc-login-scene .hc-login-field input{display:block;width:100%;height:var(--lg-field-h);padding:0 16px;border:1px solid var(--lg-field-line);border-radius:var(--radius,12px);outline:none;background:var(--lg-field);color:var(--lg-ink);font:inherit;font-size:14px;box-shadow:var(--lg-field-shadow);transition:background-color .7s ease,color .7s ease,border-color .7s ease,box-shadow .16s ease}
#hc-login-scene .hc-login-field input::placeholder{color:var(--lg-ink3);opacity:1;transition:color .7s ease}
#hc-login-scene .hc-login-field input:focus{border-color:var(--lg-accent);box-shadow:var(--ring-blue,0 0 0 3px rgba(37,99,235,.35))}
/* Chrome forces a pale background on autofilled fields: clip it to the glyphs and repaint the glass with an inset shadow. */
#hc-login-scene .hc-login-field input:-webkit-autofill{--lg-fill:var(--lg-field);-webkit-background-clip:text;-webkit-text-fill-color:var(--lg-ink);caret-color:var(--lg-ink);box-shadow:inset 0 0 0 100px var(--lg-fill),var(--lg-field-shadow)}
#hc-login-scene .hc-login-field input:-webkit-autofill:focus{box-shadow:inset 0 0 0 100px var(--lg-fill),var(--ring-blue,0 0 0 3px rgba(37,99,235,.35))}
/* Monospace keeps the caret aligned with the per-character reveal layer. */
#hc-login-scene .hc-login-password input{padding-right:46px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
#hc-login-scene .hc-login-password input::placeholder{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.hc-login-eye{position:absolute;top:50%;right:6px;display:grid;width:35px;height:35px;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--lg-ink3);cursor:pointer;transform:translateY(-50%);transition:color .2s ease}
.hc-login-eye:hover{color:var(--lg-ink)}
.hc-login-eye svg{width:18px;height:18px;transition:opacity .7s ease}
.hc-login-eye[aria-pressed="true"] svg{opacity:0}
.hc-login-error{min-height:18px;margin:-2px 0 14px;color:var(--lg-danger);font-size:12px;line-height:1.5}
.hc-login-submit{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;height:var(--lg-field-h);border:0;border-radius:var(--radius,12px);background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 8px 20px rgb(37 99 235 / 24%),inset 0 1px 0 rgb(255 255 255 / 22%);transition:transform .18s ease,box-shadow .18s ease}
.hc-login-submit::after{content:"";width:17px;height:17px;background:url("/assets/login-scene/icon-arrow.svg") center/contain no-repeat;transition:transform .18s ease}
.hc-login-submit:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgb(37 99 235 / 32%),inset 0 1px 0 rgb(255 255 255 / 30%)}
.hc-login-submit:hover::after{transform:translateX(3px)}
.hc-login-submit:active{transform:translateY(0)}
.hc-login-submit:disabled{opacity:.65;cursor:wait}
.hc-login-help{margin:22px 0 0;color:var(--lg-ink2);font-size:12px;text-align:center}
.hc-login-help span{color:var(--lg-ink);font-weight:600}
.hc-login-reset{display:block;margin:10px auto 0;padding:0;border:0;background:transparent;color:var(--lg-ink3);font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hc-login-form h1,.hc-login-help,.hc-login-help span,.hc-login-reset,.hc-login-error{transition:color .7s ease}
.hc-login-legal{position:relative;z-index:1;color:rgb(255 255 255 / 88%);font-size:12px;font-weight:600;letter-spacing:.4px;text-align:center;text-shadow:0 1px 8px rgb(3 20 34 / 45%)}
.hc-login-legal button{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.hc-login-scene button:focus-visible{outline:2px solid var(--lg-accent);outline-offset:3px}

/* Flashlight layers are positioned by login-scene.js relative to the scene. */
#hc-login-scene.is-lit #login-pass{color:transparent;-webkit-text-fill-color:transparent;caret-color:#e5f7f5}
#hc-login-scene.is-lit #login-pass::placeholder{-webkit-text-fill-color:var(--lg-ink3)}
/* The fill must be opaque here, otherwise the clipped autofill background shows through the hidden glyphs. */
#hc-login-scene.is-lit #login-pass:-webkit-autofill{--lg-fill:#161f2f;-webkit-text-fill-color:transparent;caret-color:#e5f7f5}
.hc-login-beam{position:absolute;z-index:5;pointer-events:none;filter:blur(12px);transform-origin:0 50%}
.hc-login-beam::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgb(255 224 156 / 75.4%) 0%,rgb(255 219 145 / 55.9%) 16%,rgb(255 214 140 / 32.5%) 35%,rgb(255 207 130 / 14.3%) 55%,rgb(255 202 124 / 3.9%) 75%,rgb(255 202 124 / 0%) 96%,transparent 100%);clip-path:polygon(0 49%,100% 0,100% 100%,0 51%)}
.hc-login-reveal{position:absolute;z-index:6;overflow:hidden;color:#f1f5f9;font:14px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;pointer-events:none}
.hc-login-reveal>span{position:absolute;top:0;left:17px;display:block;height:var(--lg-field-h);line-height:var(--lg-field-h);white-space:pre}
.hc-login-char{--lit:0;position:relative;display:inline-block;width:1ch;height:100%;vertical-align:top}
.hc-login-char span{position:absolute;inset:0;text-align:center;transition:opacity 90ms linear}
.hc-login-char .is-masked{opacity:calc(1 - var(--lit))}
.hc-login-char .is-plain{opacity:var(--lit)}
.hc-login-torch{position:absolute;z-index:7;display:grid;width:34px;height:34px;place-items:center;pointer-events:none;filter:drop-shadow(0 0 8px rgb(255 246 157 / 80%));transform-origin:center}
.hc-login-torch img{width:33px;height:33px}
.hc-login-beam,.hc-login-torch,.hc-login-reveal{opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s linear .7s}
.is-lit .hc-login-beam,.is-lit .hc-login-torch,.is-lit .hc-login-reveal{opacity:1;visibility:visible;transition-delay:0s}

@media(max-width:640px){
  .hc-login-scene{padding:18px}
  .hc-login-card{width:min(430px,100%);grid-template-columns:1fr;padding:10px;border-radius:26px}
  .hc-login-panel{min-height:220px}
  .hc-login-copy{width:min(88%,340px)}
  .hc-login-copy h2{margin-bottom:7px;font-size:21px}
  .hc-login-copy p{font-size:11px}
  .hc-login-form-panel{padding:34px 22px 28px}
}
@media(max-width:380px){.hc-login-form-panel{padding-inline:19px}}
@media(prefers-reduced-motion:reduce){
  .hc-login-scene *,.hc-login-scene *::before,.hc-login-scene *::after{transition-duration:.01ms!important;transition-delay:0ms!important}
  .hc-login-owl *{animation:none!important}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hc-login-card{background-color:rgb(240 246 252 / 95%)}
  .is-night .hc-login-card{background-color:rgb(11 18 32 / 97%)}
}
