/* Reuse StudyPulse's clean verification card UI language.
   Original design reference: backend/static/auth/k12-country-verify.css
   Only the visual shell is borrowed: password recovery still sends a
   single-use email LINK; it does not generate or validate six-digit OTPs.
   No Bootstrap, Materio or abandoned login-card styling. */
:root{color-scheme:light;--recovery-primary:#155dba;--recovery-ink:#172641;--recovery-copy:#47556c;--recovery-line:#b4c5df;--recovery-surface:#fff}
*{box-sizing:border-box}
html{min-height:100%;background:#eef4fc}
body.recovery-otp{min-height:100dvh;margin:0;display:grid;place-items:center;padding:24px 15px;color:var(--recovery-ink);background:radial-gradient(circle at 50% 0%,#e0efff 0,#eef4fc 42%,#f4f8ff 100%);font:400 15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.recovery-shell{width:min(100%,435px);display:grid;gap:14px}
.recovery-card{position:relative;overflow:hidden;background:var(--recovery-surface);border:1px solid #e0eaf6;border-radius:16px;padding:clamp(24px,5vw,36px);text-align:center;box-shadow:0 1px 2px #3c40434d,0 2px 6px 2px #3c404326}
.recovery-logo{display:block;width:auto;height:40px;max-width:200px;object-fit:contain;margin:0 auto 28px}
.recovery-icon{display:grid;place-items:center;width:65px;height:65px;margin:0 auto 18px;border-radius:14px;border:1px solid #c7e1ff;background:#e8f4ff;color:var(--recovery-primary)}
.recovery-icon svg{width:30px;height:30px;display:block}
.recovery-eyebrow{margin:0 0 9px;color:#1457a5;font-size:10px;letter-spacing:.14em;font-weight:800}
.recovery-card h1{font-size:clamp(22px,4vw,27px);line-height:1.22;margin:0 0 12px;font-weight:750;letter-spacing:-.035em}
.recovery-description{margin:0 0 26px;color:var(--recovery-copy);font-size:14px;line-height:1.6}
.recovery-form{display:grid;text-align:left;gap:12px}
.recovery-label{font-size:13px;font-weight:700;color:#283d5d}
.recovery-input{display:block;width:100%;height:50px;min-width:0;padding:12px 14px;border:1px solid var(--recovery-line);border-radius:7px;outline:0;font:500 15px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;background:#fff;color:var(--recovery-ink);transition:border-color .17s,box-shadow .17s}
.recovery-input::placeholder{color:#8b9cb2}
.recovery-input:focus{border-color:#2f81f7;box-shadow:0 0 0 3px #2f81f721}
.recovery-passwords{display:grid;gap:13px}
.recovery-school-context{margin:-14px 0 18px;color:#59708f;font-size:12px;line-height:1.45;font-weight:600}
.recovery-password-field{position:relative}
.recovery-password-field .recovery-input{padding-right:72px}
.recovery-visibility-toggle{position:absolute;right:7px;top:5px;bottom:5px;min-width:56px;border:0;border-radius:6px;background:transparent;color:#155dba;font-size:12px;font-weight:700;cursor:pointer;transition:background .2s ease}
.recovery-visibility-toggle:hover{background:#ebf4ff}
.recovery-match-feedback{min-height:0;margin:-5px 0 0;color:#566b84;font-size:12px;line-height:1.4}
.recovery-match-feedback:empty{display:none}
.recovery-match-feedback[data-state="match"]{color:#176548}
.recovery-match-feedback[data-state="mismatch"]{color:#b12b3e}
.recovery-hint{margin:-3px 0 1px;color:var(--recovery-copy);font-size:12px;line-height:1.5}
.recovery-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:8px;padding:12px 15px;border:0;border-radius:7px;background:var(--recovery-primary);color:#fff;font-size:14px;font-weight:750;cursor:pointer;transition:background .17s,transform .17s}
.recovery-submit:hover{background:#124c9c;transform:translateY(-1px)}
.recovery-submit:active{transform:translateY(0)}
.recovery-submit svg{width:17px;height:17px}
.recovery-success{display:grid;justify-items:center;gap:10px;padding:16px 14px 17px;margin-top:10px;border-radius:9px;border:1px solid #b7dfca;background:#ebfaf1;color:#175d42}
.recovery-success p{margin:0;font-size:13px;line-height:1.7}
.recovery-success strong{font-size:15px}
.recovery-success-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#cfefdc;color:#187348}
.recovery-error{padding:11px 12px;margin:0 0 12px;border:1px solid #ffc5c7;border-radius:7px;background:#fff2f4;color:#a22238;text-align:left;font-size:13px}
.recovery-footer{text-align:center;margin:0;padding:7px 10px 3px;font-size:13px}
.recovery-footer a{display:inline-flex;align-items:center;gap:7px;color:var(--recovery-primary);text-decoration:none;font-weight:700}
.recovery-footer a:hover{text-decoration:underline}
.recovery-subfoot{color:#6d819c;font-size:11px;line-height:1.6;text-align:center;margin:0}
.recovery-otp :is(a,button,input):focus-visible{outline:3px solid #02befd;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
