/* Recovery uses the login/registration frame from auth-split.css and
   mobile-auth.css. Keep its controls consistent with those forms. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0b0908; color: #f3ede4; font-family: 'Nunito', sans-serif; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.aurora { position: fixed; inset: 0; }
.titlebar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 10px 0 22px; border-bottom: 1px solid rgba(255,255,255,.07); -webkit-app-region: drag; }
.titlebar button { -webkit-app-region: no-drag; }
.tb-logo { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.5px; }
.titlebar-spacer { flex: 1; }
.recovery-window-controls { display: flex; align-items: center; gap: 4px; }
.wm-btn { width: 42px; height: 38px; border: 0; background: transparent; color: #b3a797; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.wm-btn:hover { background: rgba(255,255,255,.07); }
.wm-btn.close:hover { background: rgba(226,90,90,.25); }
html:not(.desktop-client) .titlebar { display: none; }
html:not(.desktop-client) .stage { top: 0; }
.stage { position: fixed; top: 58px; left: 0; right: 0; bottom: 0; display: flex; overflow-y: auto; }
.card { position: relative; }
.recovery-card .card { justify-content: flex-start; }
.recovery-card .heading { font-family: 'Nunito', sans-serif; font-weight: 600; letter-spacing: -.5px; }
.recovery-card .subtitle { font-weight: 400; color: #a69cad; }
.recovery-card .field label { font-weight: 500; color: #c8bed2; }
.recovery-card .input-wrap input { font-weight: 400; }
.recovery-card .btn-submit { font-family: 'Nunito', sans-serif; font-weight: 600; letter-spacing: 0; background: #a78bfa; box-shadow: none; }
.recovery-card .btn-submit:hover { background: #b89cfc; box-shadow: none; }
.recovery-card .footer, .recovery-card .footer-link, .recovery-card .recovery-note strong { font-weight: 500; }
.recovery-secondary-form { margin-top: 8px; }
.recovery-secondary-button { width: 100%; min-height: 44px; padding: 10px; border: 0; background: transparent; color: #b8a4ee; cursor: pointer; font-weight: 400; }
.recovery-secondary-button:hover { color: #d4c5ff; }
.recovery-secondary-button:disabled { opacity: .6; cursor: wait; }
#loginCode { font-size: 24px; text-align: center; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 20px; color: #f3ede4; letter-spacing: -.5px; }
.heading { font-family: 'Comfortaa', sans-serif; font-weight: 700; letter-spacing: -.4px; color: #f3ede4; line-height: 1.35; }
.subtitle { font-size: 13.5px; font-weight: 600; line-height: 1.55; color: #8a7d6d; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: #c9b49a; margin-bottom: 7px; letter-spacing: .2px; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 13px 15px; color: #f3ede4; font-size: 14px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #6f6577; }
.input-wrap input:focus { border-color: rgba(167,139,250,.7); box-shadow: 0 0 0 4px rgba(167,139,250,.13); background: rgba(255,255,255,.05); }
.recovery-password-wrap input { padding-right: 44px; }
.toggle-pwd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #7d7163; transition: background .15s, color .15s; }
.toggle-pwd:hover { background: rgba(255,255,255,.07); color: #b3a797; }
.toggle-pwd svg { width: 18px; height: 18px; }
.btn-submit { display: flex; justify-content: center; align-items: center; width: 100%; border: 0; cursor: pointer; padding: 14px; min-height: 48px; border-radius: 14px; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .2px; text-align: center; line-height: 1.4; box-shadow: 0 10px 28px rgba(139,110,224,.32); transition: transform .12s ease, box-shadow .2s ease; }
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(139,110,224,.42); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .65; cursor: wait; }
.footer { text-align: center; margin-top: 24px; font-size: 13px; font-weight: 700; color: #8a7d6d; }
.footer-link { color: #a78bfa; font-weight: 800; transition: color .15s; }
.footer-link:hover { color: #c4a8ff; }
.turnstile-wrap { display: flex; justify-content: center; margin: 0 0 18px; }
.turnstile-wrap .cf-turnstile { width: 100%; }
.recovery-note { padding: 15px 16px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); color: #b3a797; font-size: 12px; line-height: 1.7; }
.recovery-note strong { display: block; color: #f3ede4; font-weight: 800; margin-bottom: 6px; }
.recovery-error { border: 1px solid rgba(226,104,91,.4); color: #ff9a8e; background: rgba(226,104,91,.06); border-radius: 13px; padding: 12px 14px; margin-bottom: 18px; font-size: 12.5px; line-height: 1.5; }
.recovery-strength { display: flex; gap: 5px; margin-top: 10px; }
.recovery-strength span { height: 3px; flex: 1; border-radius: 2px; background: rgba(255,255,255,.07); }
.recovery-strength[data-level="1"] span:nth-child(-n+1) { background: #e2685b; }
.recovery-strength[data-level="2"] span:nth-child(-n+2) { background: #a78bfa; }
.recovery-strength[data-level="3"] span:nth-child(-n+3) { background: #cabb5b; }
.recovery-strength[data-level="4"] span { background: #5bd08c; }
.recovery-field-hint { font-size: 10.5px; color: #8a7d6d; margin-top: 7px; line-height: 1.5; }
.recovery-state-reset .logo { margin-bottom: 22px; }
.recovery-state-reset .subtitle { margin-bottom: 22px; }
.recovery-state-reset .field { margin-bottom: 14px; }
.recovery-demo-link { display: block; text-align: center; font-size: 11px; color: #a78bfa; margin-top: 18px; text-decoration: underline; text-underline-offset: 3px; }
.card-wrap.recovery-demo-card { display: block; max-width: 560px; height: auto; }
.recovery-demo-card .card { height: auto; border-radius: 28px; }
.recovery-demo-card .heading { margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
