/* ============ FORGOT PASSWORD PAGE — builds on css/styles.css theme tokens ============ */
body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main {
  flex: 1;
  display: flex; align-items: center;
  padding: 44px 0 64px;
}

/* ---- card ---- */
.forgot-card {
  max-width: 460px;
  margin: 0 auto;
  animation: fadeIn 250ms ease-out;
}
.forgot-cover {
  height: 6px;
  background: var(--accent-gradient);
  background-size: 200% auto;
}
.forgot-body { padding: 38px 42px 34px; }

.step { animation: fadeIn 250ms ease-out; }
.step.hidden { display: none; }

.forgot-ico {
  width: 64px; height: 64px;
  margin-bottom: 22px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--brand-dim);
  border: 1px solid rgba(255, 168, 7, 0.26);
  color: var(--brand-bright);
  box-shadow: 0 0 32px -8px rgba(255, 168, 7, 0.45);
}
.forgot-ico.success {
  background: var(--success-bg);
  border-color: rgba(77, 216, 156, 0.3);
  color: var(--success);
  box-shadow: 0 0 32px -8px rgba(77, 216, 156, 0.45);
}

.auth-eyebrow {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand-bright);
  margin-bottom: 10px;
}
.auth-eyebrow.success { color: var(--success); }
.auth-title {
  font-size: 28px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.1;
}
.auth-sub {
  font-size: 14px; color: var(--text-muted);
  margin: 10px 0 26px; line-height: 1.6;
}
.auth-sub strong {
  color: var(--text); font-weight: 600;
  font-size: 13px; word-break: break-all;
}

/* ---- field ---- */
.field { margin-bottom: 22px; }
.field-label {
  display: block;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input-wrap:focus-within {
  border-color: rgba(253, 29, 96, 0.45);
  box-shadow: 0 0 0 3px rgba(253, 29, 96, 0.12);
}
.input-ico { color: var(--text-subtle); flex-shrink: 0; }
.input-wrap:focus-within .input-ico { color: var(--danger-bright); }
.input {
  flex: 1; min-width: 0;
  height: 44px;
  background: transparent; border: none; outline: none;
  color: var(--text);
  font-family: "Manrope", sans-serif; font-size: 14px;
}
.input.mono { font-family: var(--mono); font-size: 13.5px; }
.input::placeholder { color: var(--text-subtle); opacity: 0.7; }
.input-eye {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--text-subtle);
  transition: 150ms;
}
.input-eye:hover { color: var(--text); background: var(--surface-3); }

/* ---- validation ---- */
.field-error {
  display: none;
  align-items: center; gap: 6px;
  font-size: 12px; line-height: 1.4;
  margin-top: 7px;
  color: var(--danger-bright);
}
.field-error::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 6px var(--danger);
  flex-shrink: 0;
}
.field.invalid .field-error { display: flex; }
.field.invalid .input-wrap { border-color: rgba(253, 29, 96, 0.55); }
.field.invalid .input-ico { color: var(--danger-bright); }

/* ---- sent tips ---- */
.sent-tips {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  margin-bottom: 22px;
}
.sent-tip {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-muted);
}
.sent-tip svg { color: var(--text-subtle); flex-shrink: 0; }

/* ---- links / resend ---- */
.auth-switch {
  text-align: center;
  font-size: 13.5px; color: var(--text-muted);
  margin-top: 22px;
}
.auth-switch a { color: var(--brand-bright); font-weight: 700; transition: color 150ms; }
.auth-switch a:hover { color: var(--accent-color); }
.resend-btn {
  color: var(--brand-bright); font-weight: 700;
  font-size: 13.5px;
  transition: color 150ms;
}
.resend-btn:hover:not(:disabled) { color: var(--accent-color); }
.resend-btn:disabled { color: var(--text-subtle); cursor: default; font-weight: 600; }
.resend-btn .mono { font-size: 12px; }

/* spinner used by the submit button */
.spin { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.forgot-note {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: var(--text-subtle);
  line-height: 1.5;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--border-faint);
}
.forgot-note svg { flex-shrink: 0; margin-top: 1px; }

/* ---- responsive ---- */
@media (max-width: 560px) {
  .forgot-body { padding: 30px 24px 28px; }
  .auth-title { font-size: 25px; }
}
