:root{
  --navy:#0a1f44;--navy2:#071834;--green:#10b981;--green-dark:#0e9f6e;
  --ink:#0f172a;--slate:#475569;--muted:#64748b;--line:#e2e8f0;
  --soft:#f8fafc;--white:#fff;--danger:#9f1239;--shadow:0 24px 70px rgba(10,31,68,.12)
}
*{box-sizing:border-box}
html{min-height:100%;background:#fff}
body{margin:0;min-height:100vh;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.82fr)}
.auth-brand{position:relative;overflow:hidden;background:linear-gradient(180deg,#fbfdff 0%,#f2f7fa 100%);padding:48px max(34px,calc((100vw - 1180px)/2));display:flex;flex-direction:column;justify-content:space-between}
.auth-brand:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(10,31,68,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(10,31,68,.04) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}
.auth-brand>*{position:relative}
.auth-logo img{width:150px;height:auto;object-fit:contain}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #c8f1e2;background:#eafaf4;border-radius:999px;color:var(--green-dark);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--green)}
.auth-brand h1{font:800 clamp(2.8rem,5vw,4.7rem)/1.02 Manrope;color:var(--navy);letter-spacing:-.055em;margin:24px 0 20px}
.auth-brand h1 span{color:var(--green-dark)}
.auth-brand p{font-size:1.05rem;line-height:1.72;color:var(--slate);max-width:590px}
.auth-brand small{color:#94a3b8}
.auth-form-side{display:grid;place-items:center;padding:32px}
.auth-card{width:min(470px,100%);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow);padding:32px}
.section-kicker{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:var(--green-dark)}
.auth-card h2{font:800 2rem Manrope;color:var(--navy);margin:8px 0}
.muted{color:var(--muted);line-height:1.58;margin:0 0 22px}
label{display:block;margin:15px 0;font-size:.78rem;font-weight:800;color:var(--slate)}
input{width:100%;height:48px;border:1px solid var(--line);border-radius:12px;margin-top:7px;padding:0 13px;font:inherit;color:var(--ink);outline:none}
input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.password-wrap{position:relative}
.password-wrap input{padding-right:70px}
.password-wrap button{position:absolute;right:8px;bottom:7px;border:0;background:transparent;color:var(--navy);font-weight:800;padding:8px;cursor:pointer}
.button{width:100%;display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:12px;font-weight:800;border:0;cursor:pointer;font:inherit}
.button--primary{background:var(--green);color:#062d25}
.button:disabled{opacity:.58;cursor:not-allowed}
.message{border-radius:12px;padding:11px 12px;margin:14px 0;font-size:.82rem;line-height:1.5}
.message.error{background:#fff1f2;color:var(--danger)}
.message.ok{background:#ecfdf5;color:#047857}
.message.info{background:#eff6ff;color:#1d4ed8}
.auth-links{display:flex;justify-content:space-between;gap:14px;margin-top:18px}
.auth-links a{font-size:.76rem;font-weight:800;color:var(--green-dark)}
.password-rules{margin:12px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--muted);font-size:.73rem;line-height:1.55}
.password-rules strong{color:var(--navy)}
.secure-note{display:flex;gap:9px;align-items:flex-start;margin:18px 0 0;color:var(--muted);font-size:.72rem;line-height:1.5}
.secure-note i{width:8px;height:8px;border-radius:50%;background:var(--green);margin-top:5px;flex:0 0 auto}
@media(max-width:850px){
  .auth-page{grid-template-columns:1fr}
  .auth-brand{min-height:350px;padding:30px 22px}
  .auth-form-side{padding:18px}
  .auth-card{padding:24px}
  .auth-brand h1{font-size:clamp(2.55rem,12vw,3.7rem)}
}
@media(max-width:520px){.auth-links{flex-direction:column}}

/* Keep the security challenge visibly mounted within the recovery form. */
#forgotTurnstile{display:block;min-height:66px;margin:16px 0 6px;max-width:100%;overflow:visible}
#forgotTurnstile iframe{max-width:100%}
.turnstile-help{font-size:.76rem;color:var(--muted);line-height:1.45;margin:4px 0 12px}
.turnstile-retry{margin:0 0 14px;padding:9px 12px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:700;cursor:pointer}
.turnstile-retry[hidden]{display:none}
