.recovery-page,
.recovery-page *,
.recovery-page *::before,
.recovery-page *::after {
  box-sizing: border-box;
}

.recovery-page button,
.recovery-page input,
.recovery-page a {
  font: inherit;
}

.member-view-recovery-controls {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  grid-column: 1 / -1;
}

.member-view-recovery-action {
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(96, 165, 250, 0.52);
  border-radius: 12px;
  background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.13),
      rgba(59, 130, 246, 0.035)
    ),
    #151b2d;
  color: #dbeafe;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.member-view-recovery-action:hover:not(:disabled) {
  border-color: #60a5fa;
  background: linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.2),
      rgba(59, 130, 246, 0.06)
    ),
    #171e31;
  color: #eff6ff;
  transform: translateY(-1px);
}

.member-view-recovery-action:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.member-view-recovery-action:focus-visible,
.member-view-recovery-copy:focus-visible,
.member-view-recovery-dismiss:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.26);
  outline-offset: 3px;
}

.member-view-recovery-panel {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  background: rgba(10, 20, 36, 0.72);
}

.member-view-recovery-panel[hidden],
.recovery-step[hidden] {
  display: none;
}

.member-view-recovery-panel strong {
  color: var(--admin-text, #f8fafc);
  font-size: 12px;
}

.member-view-recovery-code {
  display: block;
  padding: 10px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(147, 197, 253, 0.42);
  border-radius: 9px;
  background: rgba(30, 64, 175, 0.18);
  color: #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.member-view-recovery-note,
.member-view-recovery-message {
  margin: 0;
  color: var(--admin-muted, #a7b4c8);
  font-size: 10px;
  line-height: 1.5;
}

.member-view-recovery-message {
  color: #bfdbfe;
}

.member-view-recovery-message[data-type="error"] {
  color: #fecaca;
}

.member-view-recovery-message[data-type="success"] {
  color: #bbf7d0;
}

.member-view-recovery-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-view-recovery-copy,
.member-view-recovery-dismiss {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--admin-border-strong, #334155);
  border-radius: 9px;
  background: var(--admin-card-alt, #121c2d);
  color: var(--admin-text, #f8fafc);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.member-view-recovery-copy:hover,
.member-view-recovery-dismiss:hover {
  border-color: rgba(147, 197, 253, 0.55);
}

.recovery-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(18, 56, 120, 0.42), transparent 38%),
    radial-gradient(circle at 5% 90%, rgba(255, 138, 0, 0.08), transparent 25%),
    linear-gradient(145deg, #050b18, #07142b 55%, #050b18);
  color: #f8fafc;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.recovery-shell {
  width: min(100% - 32px, 430px);
  margin: 0 auto;
  padding: 38px 0 48px;
}

.recovery-brand {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.recovery-brand img {
  width: min(250px, 72vw);
  height: auto;
  object-fit: contain;
}

.recovery-card {
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(13, 24, 41, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.recovery-card-header {
  margin-bottom: 22px;
}

.recovery-eyebrow {
  margin: 0 0 10px;
  color: #ffae00;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.recovery-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.recovery-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.recovery-card-header p:not(.recovery-eyebrow) {
  margin: 12px 0 0;
  color: #c2ccdb;
  font-size: 0.86rem;
  line-height: 1.6;
}

.recovery-step {
  display: grid;
  gap: 16px;
}

.recovery-form {
  display: grid;
  gap: 14px;
}

.recovery-field {
  display: grid;
  gap: 7px;
}

.recovery-field label {
  color: #edf2fa;
  font-size: 0.74rem;
  font-weight: 700;
}

.recovery-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #2b3d58;
  border-radius: 12px;
  outline: 0;
  background: #0a1424;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
}

.recovery-field input:focus {
  border-color: #d98914;
  box-shadow: 0 0 0 3px rgba(255, 145, 15, 0.1);
}

.recovery-password-control {
  position: relative;
}

.recovery-password-control input {
  padding-right: 72px;
}

.recovery-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 52px;
  min-height: 34px;
  padding: 6px 9px;
  transform: translateY(-50%);
  border: 1px solid #334660;
  border-radius: 8px;
  background: #111f34;
  color: #dbeafe;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.recovery-password-toggle:hover,
.recovery-password-toggle:focus-visible {
  border-color: #ffb20a;
  color: #fff;
}

.recovery-field small {
  color: #8799b3;
  font-size: 0.76rem;
  line-height: 1.5;
}

.recovery-submit,
.recovery-secondary {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.recovery-submit {
  border: 0;
  background: linear-gradient(135deg, #ff8a00, #ffb20a);
  color: #160d03;
  box-shadow: 0 12px 25px rgba(255, 121, 13, 0.18);
}

.recovery-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.recovery-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.recovery-secondary {
  border: 1px solid #334660;
  background: transparent;
  color: #dbeafe;
}

.recovery-message {
  min-height: 20px;
  margin: 0;
  color: #bfdbfe;
  font-size: 0.8rem;
  line-height: 1.5;
}

.recovery-message.error {
  color: #fecaca;
}

.recovery-message.success {
  color: #bbf7d0;
}

.recovery-footer {
  margin: 20px 0 0;
  text-align: center;
}

.recovery-footer a {
  color: #9aabc3;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.recovery-footer a:hover {
  color: #ffb20a;
}
