/* Shared auth layout, independent of dashboard shell styles. */
.auth-page{margin:0;min-height:100vh;min-height:100dvh;background:#f3f7f6;color:#102438}
.auth-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.auth-showcase{background:radial-gradient(ellipse at 12% 8%,#08735b55,transparent 56%),linear-gradient(145deg,#064e3b,#0f172a);color:#f1f5f9;display:flex;align-items:center;justify-content:center;padding:clamp(28px,4.5vw,76px)}
.showcase-inner{width:100%;max-width:560px}
.auth-brand{display:inline-flex;align-items:center;gap:12px;font-size:20px;font-weight:850;letter-spacing:-.045em;text-decoration:none}
.auth-brand em{font-style:normal;color:#047857}.showcase-brand em{color:#6ee7b7}
.showcase-brand{margin-bottom:clamp(28px,5vh,56px)}
.showcase-kicker{font-size:10px;letter-spacing:.17em;font-weight:750;color:#a7f3d0}
.showcase-copy h2{font-size:clamp(32px,3.6vw,54px);line-height:1.08;letter-spacing:-.045em;margin:13px 0 16px;font-weight:760}
.showcase-copy h2 span{color:#6ee7b7}.showcase-copy p{font-size:15px;color:#c4d8d5;max-width:450px;margin-bottom:14px}
.showcase-art{width:100%;height:auto;display:block;margin:10px 0 22px}
.showcase-trust{list-style:none;margin:0;padding:0;display:grid;gap:11px;color:#e1f2ed;font-size:13px;font-weight:600}
.showcase-trust li{display:flex;align-items:center;gap:9px}.showcase-trust svg,.showcase-security svg{width:20px;height:20px;flex-shrink:0}
.showcase-security{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#b8d5ce;border:1px solid #ffffff26;border-radius:20px;padding:7px 12px;margin-top:24px}
.auth-form-area{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px clamp(20px,4vw,64px);min-width:0}
.auth-card{background:white;width:100%;max-width:470px;padding:clamp(24px,3vw,40px);border:1px solid #dce8e4;border-radius:22px;box-shadow:0 16px 50px #12352c0d}
.form-brand{margin-bottom:28px}.auth-card h1{font-size:clamp(26px,2.5vw,34px);margin-bottom:9px;color:#102438}
.auth-card>p:not(.auth-switch){color:#53677b;font-size:14px}
.auth-card form{display:grid;gap:10px;margin-top:25px}
.auth-card label{font-size:13px;font-weight:700;color:#21384a;margin-top:4px}
.auth-card input{width:100%;min-width:0;height:48px;border:1px solid #cbd8d4;border-radius:10px;background:#fff;padding:0 13px;color:#13283b;font-size:14px;transition:border-color .15s,box-shadow .15s}
.auth-card input:focus{outline:none;border-color:#059669;box-shadow:0 0 0 4px #10b98120}
.auth-page :is(a,button):focus-visible{outline:3px solid #10b981;outline-offset:3px}
.auth-label-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}.auth-label-row label{margin:0}
.auth-label-row a,.auth-switch a{color:#047857;font-size:13px;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.password-field{position:relative;min-width:0}.password-field input{padding-right:48px}
.password-toggle{position:absolute;right:4px;top:3px;width:42px;height:42px;border:0;background:transparent;border-radius:7px;color:#52677b;display:grid;place-items:center}
.password-toggle:hover{background:#f0f7f4}.password-toggle svg{width:21px;height:21px}.eye-slash{display:none}.password-toggle[aria-pressed=true] .eye-slash{display:block}
.auth-submit,.dialog-primary{width:100%;min-height:48px;border-radius:10px;font-size:14px;font-weight:750;margin-top:8px;display:flex;justify-content:center;align-items:center;gap:10px}
.auth-submit[aria-busy=true]{opacity:.85;cursor:wait}.auth-spinner{display:none;width:18px;height:18px;border:2px solid #ffffff70;border-top-color:white;border-radius:50%;animation:auth-spin .75s linear infinite}
.auth-submit[aria-busy=true] .auth-spinner{display:inline-block}@keyframes auth-spin{to{transform:rotate(360deg)}}
.auth-switch{border-top:1px solid #e5ece9;padding-top:20px;margin:22px 0 0;text-align:center;font-size:13px;color:#53677b}
.auth-hint{font-size:12px;color:#53677b;line-height:1.5;display:block}.auth-verification-note{margin-top:16px}.auth-demo{margin-top:18px;overflow-wrap:anywhere}
.auth-notice{padding:14px;border:1px solid #a7d9c8;background:#ecfdf5;border-radius:10px;color:#065f46!important;font-size:13px;line-height:1.55;margin-top:18px}
.auth-card .form-error{color:#a12639;font-size:13px;margin:0;line-height:1.5}.form-error:empty{display:none}
.auth-footer{margin-top:24px;text-align:center;font-size:11px;color:#53677b}
.auth-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #dce8e4;border-radius:22px;padding:0;color:#102438;background:#fff;box-shadow:0 24px 80px #0f172a40}
.auth-dialog::backdrop{background:#0f172a99;backdrop-filter:blur(3px)}
.dialog-content{text-align:center;padding:32px;overflow-wrap:anywhere}.dialog-content h2{font-size:25px;letter-spacing:-.03em;margin:12px 0}
.dialog-content p{font-size:14px;color:#53677b;line-height:1.65}.sent-icon{width:80px;height:80px;animation:auth-pop .35s ease-out both}
.sent-check{stroke-dasharray:20;stroke-dashoffset:20;animation:auth-draw .4s .2s ease-out forwards}
@keyframes auth-pop{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes auth-draw{to{stroke-dashoffset:0}}
.resend-button,.dialog-dismiss{border:0;background:transparent;color:#047857;font-weight:700;padding:12px;font-size:13px;text-decoration:underline;text-underline-offset:3px}.resend-status{margin:0;min-height:20px;font-size:12px!important}.dialog-dismiss{color:#53677b;font-weight:500}
@media(max-width:1023px){.auth-layout{grid-template-columns:1fr}.auth-showcase{display:none}.auth-form-area{min-height:100vh;min-height:100dvh;padding:28px 18px;background:radial-gradient(ellipse at top right,#d7f5e9,transparent 65%),#f3f7f6}.auth-card{max-width:460px}.form-brand{margin-bottom:25px}}
@media(max-width:360px){.auth-card{padding:22px 17px}.auth-label-row a{font-size:12px}.dialog-content{padding:24px}}
@media(prefers-reduced-motion:reduce){.auth-page *, .auth-page *::before,.auth-page *::after{animation:none!important;transition:none!important}.sent-check{stroke-dashoffset:0}}

.otp-notice{margin:10px 0 0;padding:10px 12px;overflow-wrap:anywhere}
.otp-input{font-variant-numeric:tabular-nums;letter-spacing:.25em;font-weight:750}
.otp-actions{display:flex;justify-content:space-between;gap:8px;margin-top:8px}
.otp-actions button{border:0;background:transparent;color:#047857;font-size:12px;font-weight:700;text-decoration:underline;padding:5px 0}
#otp-step:not([hidden]){animation:auth-pop .2s ease-out}
@media(min-width:1024px){
  html:has(.auth-page){height:100%;overflow:hidden}
  .auth-page{height:100vh;min-height:0;overflow:hidden}
  .auth-layout{height:100vh;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
  .auth-showcase,.auth-form-area{min-height:0;padding:clamp(12px,2.2vh,24px) clamp(24px,3.5vw,56px)}
  .showcase-inner{max-width:560px;display:flex;flex-direction:column;justify-content:center;min-height:0}
  .showcase-brand{margin-bottom:clamp(12px,3vh,30px)}
  .showcase-copy h2{font-size:clamp(28px,5.5vh,48px);margin:8px 0}
  .showcase-copy p{font-size:13px;margin-bottom:6px}
  .showcase-art{max-height:29vh;margin:8px 0 12px;object-fit:contain}
  .showcase-trust{gap:6px;font-size:12px}
  .showcase-security{align-self:flex-start;margin-top:12px}
  .auth-card{padding:clamp(16px,2.7vh,30px) 30px}
  .form-brand{margin-bottom:clamp(8px,2vh,22px)}
  .auth-card h1{font-size:clamp(24px,4vh,32px);margin-bottom:6px}
  .auth-card>p:not(.auth-switch){font-size:13px;margin-bottom:8px}
  .auth-card form{gap:5px;margin-top:12px}
  .auth-card label{margin-top:2px;font-size:12px}
  .auth-card input{height:clamp(36px,6vh,44px)}
  .password-toggle{height:calc(100% - 6px)}
  .auth-submit{min-height:clamp(36px,6vh,44px);margin-top:5px}
  .auth-switch{padding-top:10px;margin:12px 0 0}
  .auth-footer{margin-top:10px}
  .auth-verification-note{margin-top:8px;font-size:11px}
  .auth-notice{margin-top:8px}
}
/* Exception for very short windows or enlarged text: keep controls reachable. */
@media(min-width:1024px) and (max-height:590px){
  html:has(.auth-page){overflow:auto;height:auto}
  .auth-page,.auth-layout{height:auto;min-height:100vh;overflow:visible}
  .auth-form-area{padding-block:14px}
}
