.recovery-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 166, 147, .14), transparent 24rem),
    radial-gradient(circle at 88% 92%, rgba(201, 243, 107, .16), transparent 22rem),
    var(--paper);
}

.recovery-shell {
  display: grid;
  width: min(100% - 32px, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
  place-content: center;
}

.recovery-brand {
  width: fit-content;
  margin: 0 auto 24px;
  border-radius: var(--radius-sm);
}

.recovery-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.recovery-card {
  position: relative;
  min-height: 460px;
  padding: clamp(28px, 6vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.recovery-shield {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 15px;
  background: var(--turquoise-soft);
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.recovery-view { display: grid; }
.recovery-view.hidden { display: none; }
.recovery-kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.recovery-view h1 { max-width: none; margin: 0 0 14px; font-size: clamp(31px, 7vw, 42px); line-height: 1.08; }
.recovery-lede { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.recovery-form { display: grid; gap: 10px; }
.recovery-form label { margin-top: 3px; color: var(--ink); font-size: 14px; font-weight: 800; }
.recovery-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--turquoise-subtle);
  color: var(--ink);
  outline: none;
}
.recovery-form input:focus { border-color: var(--turquoise); background: var(--card); box-shadow: 0 0 0 4px rgba(0, 166, 147, .11); }
.recovery-form input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }

.recovery-password-field { position: relative; }
.recovery-password-field input { padding-right: 76px; }
.recovery-password-toggle {
  position: absolute;
  right: 6px;
  top: 5px;
  min-width: 62px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.recovery-primary,
.recovery-secondary {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.recovery-primary { margin-top: 12px; padding: 0 18px; border: 0; background: var(--turquoise); color: #fff; box-shadow: 0 10px 24px rgba(0, 166, 147, .2); }
.recovery-primary:hover { background: var(--turquoise-hover); }
.recovery-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.recovery-secondary { margin-top: 10px; padding: 0 16px; border: 1px solid transparent; color: var(--green); }
.recovery-secondary:hover { background: var(--turquoise-subtle); }
.recovery-brand:focus-visible,
.recovery-primary:focus-visible,
.recovery-secondary:focus-visible,
.recovery-password-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.recovery-link-button { margin-top: 2px; }
.recovery-hint { margin: -2px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recovery-status { min-height: 48px; margin: 18px 0 -10px; padding: 11px 12px; border-radius: 11px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.recovery-status:empty { visibility: hidden; }
.recovery-status.error { visibility: visible; background: var(--danger-soft); color: var(--danger); }
.recovery-status.success { visibility: visible; background: var(--success-soft); color: var(--success); }
.recovery-security-note { margin: 20px auto 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 520px) {
  .recovery-shell { width: 100%; padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); place-content: start center; }
  .recovery-brand { margin-bottom: 18px; }
  .recovery-card { min-height: 0; padding: 26px 20px; border-radius: 22px; }
  .recovery-view h1 { font-size: 31px; }
  .recovery-lede { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .recovery-page * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
