.auth-page{max-width:1440px;min-height:100svh;margin:auto;display:flex;flex-direction:column;padding:0 64px}
.auth-header{display:flex;align-items:center;justify-content:space-between;min-height:114px;gap:20px}
.auth-brand{width:210px;margin-left:-12px}
.auth-header .theme-toggle{border-color:var(--line);background:var(--surface);min-height:40px}
.auth-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;align-items:center;flex:1;padding:34px 0 50px}
.auth-story{position:relative;padding:0 12px 0 16px}
.auth-story>.eyebrow{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:650;margin-bottom:20px}
.auth-story h1{font-size:clamp(42px,4.8vw,66px);line-height:1.09;letter-spacing:-2.9px;font-weight:650}
.auth-story h1 span{color:var(--blue)}
.auth-story>p:not(.eyebrow){font-size:15px;line-height:1.8;max-width:320px;color:var(--muted);margin-top:24px}
.auth-orbit{width:255px;height:250px;position:relative;display:grid;place-items:center;margin:22px 0 20px;background:radial-gradient(ellipse,#075bee0c,transparent 70%)}
.auth-orbit:before,.auth-orbit:after{content:"";position:absolute;border-radius:50%;border:1px solid var(--line);width:225px;height:225px}
.auth-orbit:after{width:190px;height:190px;border-style:dashed;opacity:.6}
.auth-clock{width:154px;height:154px;border:1px solid var(--line);border-radius:50%;position:relative;background:var(--surface);box-shadow:0 15px 50px #075bee09}
.auth-clock:before{content:"";position:absolute;inset:10px;background:var(--muted);mask:url('/images/clock-ticks.svg') center/contain no-repeat;opacity:.55}
.auth-clock i{position:absolute;left:calc(50% - 1.5px);bottom:50%;transform-origin:50% 100%;border-radius:5px;background:var(--text);width:3px}
.auth-hour{height:33px;transform:rotate(304deg)}
.auth-minute{height:46px;transform:rotate(48deg)}
.auth-clock .auth-second{width:1.5px;background:var(--teal);height:53px;left:calc(50% - .75px);animation:login-clock 60s steps(60,end) infinite}
.auth-clock b{width:6px;height:6px;position:absolute;left:calc(50% - 3px);top:calc(50% - 3px);border-radius:50%;background:var(--teal)}
.orbit-label{position:absolute;bottom:0;font-size:8px;letter-spacing:2px;color:var(--muted);font-weight:600}
.auth-story-foot{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;margin-top:26px}
.auth-dot,.notice-dot{width:6px;height:6px;border-radius:50%;background:var(--teal);flex-shrink:0}
.auth-panel{padding:44px 38px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 12px 60px #071d2d04}
.auth-panel-inner{max-width:365px;margin:auto}
.auth-kicker{display:block;letter-spacing:1.7px;color:var(--muted);font-size:9px;font-weight:600;margin-bottom:10px}
.auth-panel h2{font-size:30px;line-height:1.25;letter-spacing:-.9px;font-weight:650}
.auth-description{font-size:12px;color:var(--muted);margin-top:11px;margin-bottom:28px;line-height:1.8}
.auth-notice{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.7;color:var(--text);background:var(--teal-soft);border:1px solid var(--line);border-radius:9px;padding:13px 15px;margin:0 0 26px}
.auth-notice .notice-dot{margin-top:6px}
.auth-form{display:grid;gap:21px}
.auth-field label{font-size:11px;font-weight:600;display:block;margin-bottom:9px}
.auth-field input{height:47px;width:100%;border:1px solid var(--line);border-radius:8px;padding:0 13px;color:var(--text);background:var(--bg);font-size:12px}
.auth-field input::placeholder{color:var(--muted);opacity:.7}
.field-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.field-label-row a{font-size:10px}
.password-field{position:relative}
.password-field input{padding-right:65px}
.password-reveal{position:absolute;right:4px;top:4px;min-width:52px;min-height:39px;border:0;background:transparent;font-size:10px;font-weight:600;color:var(--muted);border-radius:5px}
.auth-check{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.auth-check input{accent-color:#075bee;width:14px;height:14px}
.auth-submit{justify-content:space-between;width:100%;min-height:47px;font-size:12px;border-radius:8px;padding:0 16px;color:#fff;background:#075bee;border-color:#075bee}
.auth-submit span{font-size:19px}
.auth-help{color:var(--muted);font-size:10px;line-height:1.7;margin-top:25px;text-align:center}
.auth-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);min-height:65px;color:var(--muted);font-size:9px;gap:16px}
.auth-errors:empty{display:none}
.auth-errors ul{padding-left:15px;margin:0}
.auth-errors.validation-summary-valid{display:none}
.auth-errors,.field-error{color:var(--red);font-size:11px;line-height:1.6}
.field-error{display:block;margin-top:6px}
.field-error:empty{display:none}
.input-validation-error{border-color:var(--red)!important}
.back-to-login{display:inline-block;font-size:11px;margin-bottom:30px}
.reset-grid .auth-story-foot{margin-top:50px}
.empty-workspace{padding:60px 24px;text-align:center;display:grid;justify-items:center;gap:12px}
.empty-workspace>.icon{color:var(--muted);width:32px;height:32px;margin-bottom:5px}
.empty-workspace h2{font-size:18px}.empty-workspace p{font-size:12px;line-height:1.8;color:var(--muted);max-width:390px}
@keyframes login-clock{from{transform:rotate(252deg)}to{transform:rotate(612deg)}}
@media(max-width:1050px){.auth-page{padding:0 36px}.auth-grid{gap:30px}.auth-panel{padding:34px 27px}}
@media(max-width:760px){.auth-page{padding:0 23px}.auth-header{min-height:87px}.auth-brand{width:185px}.auth-grid{grid-template-columns:1fr;max-width:440px;width:100%;margin:auto;gap:26px;padding-top:20px}.auth-story{padding:0}.auth-story h1{font-size:36px;line-height:1.13;letter-spacing:-1.7px}.auth-story h1 br{display:none}.auth-story h1 span{display:block}.auth-story>.eyebrow{font-size:8px;margin-bottom:13px}.auth-story>p:not(.eyebrow){margin-top:15px;font-size:12px;max-width:340px}.auth-orbit,.auth-story-foot{display:none}.auth-panel{padding:28px 23px;border-radius:16px}.auth-panel h2{font-size:27px}.auth-notice{font-size:10px;padding:11px}.auth-footer{font-size:8px;min-height:56px}.reset-grid .auth-story-foot{display:none}}
@media(max-width:380px){.auth-page{padding:0 17px}.auth-panel{padding:26px 17px}.auth-brand{width:170px}.auth-footer>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.auth-second{animation:none!important}}

.auth-login{
 width:100%;
 max-width:none;
 height:100svh;
 padding:0;
 display:grid;
 isolation:isolate;
 /* Equal tracks above and below keep the login centered when there is room. */
 grid-template-rows:minmax(min-content,1fr) auto 1fr;
}
@media(width > 670px){
 .auth-login::before,.auth-login::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
 }
 .auth-login::before{
  background:
   radial-gradient(ellipse at 12% 14%,color-mix(in srgb,var(--blue) 7%,transparent),transparent 67%),
   radial-gradient(ellipse at 8% 86%,color-mix(in srgb,var(--teal) 9%,transparent),transparent 62%);
 }
 .auth-login::after{
  inset-inline-end:24%;
  --blue-line:color-mix(in srgb,var(--blue) 22%,transparent);
  --teal-line:color-mix(in srgb,var(--teal) 18%,transparent);
  background-image:
   repeating-radial-gradient(circle at bottom left,transparent 0 31px,var(--blue-line) 32px,transparent 33px 46px),
   repeating-radial-gradient(circle at top right,transparent 0 42px,var(--teal-line) 43px,transparent 44px 58px);
  background-size:114% 114%;
  background-position:left bottom,right top;
  background-repeat:no-repeat;
  mask-image:linear-gradient(90deg,black 0 43%,#0009 66%,transparent 96%);
 }
}
@media(width > 670px) and (prefers-reduced-motion:no-preference){
 .auth-login::after{animation:login-pattern-drift 14s ease-in-out infinite alternate}
}
@keyframes login-pattern-drift{to{background-position:right top,left bottom}}
.auth-login .auth-header{
 align-self:start;
 min-height:0;
 padding-block:clamp(4px,1.4svh,16px);
 padding-inline:clamp(14px,4vw,40px);
}
.auth-login .auth-brand{width:clamp(152px,24vw,205px);margin-left:0}
.auth-login .auth-grid{
 width:100%;
 max-width:none;
 margin:0;
 padding:12px 0;
 grid-template-columns:repeat(2,minmax(0,1fr));
 grid-template-areas:"clock form";
 gap:0;
 place-items:center;
}
.auth-login .auth-story{grid-area:clock;width:100%;padding:0}
.login-clock-scene{display:grid;justify-items:center;gap:14px;margin:0;text-align:center}
.login-clock{display:block;width:min(278px,calc(100% - 32px),41svh);height:auto;overflow:visible}
.login-time{display:grid;gap:4px}
.login-time time{font-size:24px;font-weight:500;line-height:1.25;letter-spacing:1px;font-variant-numeric:tabular-nums}
.clock-date{font-size:12px;color:var(--muted)}
.auth-login .auth-panel{
 grid-area:form;
 width:min(440px,calc(100% - 2 * clamp(14px,2vw,24px)));
 min-width:0;
 padding:clamp(14px,3vw,30px);
 border-radius:22px;
 box-shadow:0 12px 32px -20px #071d2d22;
}
.dark .auth-login .auth-panel{box-shadow:0 12px 32px -20px #0008}
.auth-login .auth-panel-inner{max-width:none}
.auth-login h1{font-size:clamp(24px,4vw,32px);letter-spacing:-.8px;font-weight:650}
.auth-login .auth-description{font-size:14px;line-height:1.5;margin:5px 0 18px;overflow-wrap:anywhere}
.auth-login .auth-form{gap:12px}
.auth-login .auth-field{min-width:0}
.auth-login .auth-field label{font-size:13px;margin-bottom:5px;font-weight:600}
.auth-login .auth-field input{
 height:46px;
 font-size:16px;
 border-radius:10px;
 padding-inline:12px;
 transition:border-color .12s,box-shadow .12s;
}
.auth-login .auth-field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft);outline:0}
.auth-login .password-field input{padding-right:62px}
.auth-login .password-reveal{min-height:38px;font-size:11px}
.auth-login .auth-check{font-size:13px;min-height:28px;gap:9px;cursor:pointer;justify-self:start}
.dark .auth-login .auth-check{color:#fff}
.auth-login .auth-check input{width:17px;height:17px;margin:0;flex-shrink:0;cursor:pointer}
.auth-login .auth-submit{min-height:46px;border-radius:10px;font-size:14px;justify-content:center;gap:8px;background:#075bee;border-color:#075bee}
.auth-login .auth-submit:hover{background:#034bd0}
.login-forgot,.login-verify{display:inline-flex;align-items:center;justify-content:center;min-height:34px;font-size:13px;font-weight:600}
.login-forgot{justify-self:center}
.login-support{border-top:1px solid var(--line);padding-top:4px;margin-top:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:12px}
.auth-login .auth-help{margin:0;font-size:12px;line-height:1.6;text-align:start}
.auth-verify-link{min-height:34px;font-size:12px}
.auth-login .auth-notice{font-size:12px;padding:12px;margin-bottom:14px}
.auth-login .auth-errors,.auth-login .field-error{font-size:12px;overflow-wrap:anywhere}
.auth-login [hidden]{display:none!important}
.auth-errors.is-success{color:var(--teal);padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--teal-soft)}
.auth-code-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}
#code-countdown{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:670px){
 .auth-login .auth-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"form"}
 .auth-login .auth-story{display:none}
}
@media(max-width:350px){
 .auth-login .auth-grid{padding-top:6px}
 .auth-login .auth-description{margin-bottom:12px}
}
@media(max-height:520px),(min-width:671px) and (max-height:690px){
 .auth-login .auth-panel{padding-block:12px}
 .auth-login .auth-description{margin-bottom:10px;font-size:13px}
 .auth-login .auth-form{gap:7px}
 .auth-login .auth-field input,.auth-login .auth-submit{height:42px;min-height:42px}
 .auth-login .password-reveal{min-height:34px}
 .login-support{margin-top:3px;padding-top:2px}
}
@media(min-width:550px) and (max-width:670px) and (max-height:450px){
 .auth-login .auth-panel{width:min(620px,calc(100% - 28px))}
 .auth-login #login-form:not(:has(.auth-field[hidden])){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;align-items:center}
 .auth-login #login-form .auth-errors{grid-column:1/-1}
 .auth-login #login-form .login-forgot{grid-column:2;grid-row:auto}
}
@media(min-width:550px) and (max-width:670px) and (max-height:370px){
 .auth-login .auth-brand{width:132px}
 .auth-login .auth-grid{padding-block:4px 6px}
 .auth-login .auth-panel{padding-block:8px}
 .auth-login h1{font-size:22px}
 .auth-login .auth-description{margin-block:3px 8px}
 .auth-login .auth-form{gap:5px 12px}
 .auth-login .auth-field label{margin-bottom:3px}
 .auth-login .auth-field input{height:38px;min-height:38px}
 .auth-login .password-reveal{min-height:30px}
 .login-forgot,.login-verify{min-height:28px}
}
.login-clock .dial-face{fill:var(--surface);stroke:var(--line);stroke-width:1}
.login-clock .dial-tick{stroke:var(--muted);stroke-opacity:.55;stroke-width:1.4;stroke-linecap:butt}
.login-clock .dial-tick-major{stroke:var(--text);stroke-opacity:.7;stroke-width:2.5}
.login-clock .dial-numbers{fill:var(--muted);font-size:14px;font-weight:550;text-anchor:middle}
.login-clock .dial-brand{fill:var(--muted);font-size:8px;font-weight:600;letter-spacing:2px;text-anchor:middle}
.login-clock .dial-hour,.login-clock .dial-minute{stroke:var(--text);stroke-width:6;stroke-linecap:round}
.login-clock .dial-minute{stroke-width:3.5}
.login-clock .dial-second{stroke:var(--teal);stroke-width:1.8;stroke-linecap:round}
.login-clock .dial-counterweight,.login-clock .dial-pin{fill:var(--teal)}
.login-clock .dial-pin-halo{fill:var(--teal);fill-opacity:.13}
.login-clock .dial-pin-center{fill:var(--surface)}
.login-clock:not([data-ready]) .dial-hands{visibility:hidden}
