.forgot-password-page {
  /* Red-tinted recovery backdrop separates password help flows from the standard cyan auth pages. */
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 95, 115, 0.2), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(255, 180, 0, 0.08), transparent 30%),
    var(--bg);
}

.forgot-shell {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.forgot-shell > * {
  width: min(100%, 480px);
}

.forgot-shell .boot-log,
.forgot-note,
.forgot-form label,
.forgot-form__message,
.forgot-card__brand,
.forgot-card__badge,
.forgot-form button {
  font-family: "JetBrains Mono", monospace;
}

.forgot-shell .boot-log {
  margin: 0;
  color: rgba(255, 95, 115, 0.42);
}

.forgot-shell .boot-log p,
.forgot-note {
  margin: 0;
}

.forgot-card {
  /* Card sizing mirrors the reset page so the two recovery routes feel like one flow. */
  padding: 36px;
  border-color: rgba(255, 95, 115, 0.15);
}

.forgot-card__accent {
  height: 2px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f73, rgba(255, 95, 115, 0));
}

.forgot-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.forgot-card__brand {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--text);
}

.forgot-card__badge {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 95, 115, 0.5);
}

.forgot-card h1 {
  margin: 0 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #ffe6ea;
}

.forgot-card__subtitle {
  margin: 0 0 24px;
  color: rgba(255, 200, 210, 0.45);
  font-family: "Inter", "Hey Comic", sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

.forgot-card__divider {
  margin-bottom: 28px;
  border-top: 1px solid rgba(255, 95, 115, 0.1);
}

.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forgot-form label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.forgot-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.forgot-form input::placeholder {
  color: rgba(210, 228, 255, 0.25);
  font-style: italic;
}

.forgot-form input:focus {
  border-color: rgba(255, 95, 115, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 95, 115, 0.07);
}

.forgot-form input.is-error {
  border-color: rgba(255, 95, 115, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 95, 115, 0.08);
}

.forgot-form input.is-success {
  border-color: rgba(53, 226, 143, 0.4);
  box-shadow: 0 0 0 3px rgba(53, 226, 143, 0.07);
}

.forgot-form__message {
  /* Feedback stays under the input so users do not have to scan the whole page for status. */
  min-height: 16px;
  margin: -4px 0 0;
  font-size: 11px;
  color: rgba(255, 200, 210, 0.6);
}

.forgot-form__message.is-error {
  color: var(--red);
}

.forgot-form__message.is-success {
  color: var(--green);
}

.forgot-form button {
  width: 100%;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 115, 0.4);
  background: rgba(255, 95, 115, 0.1);
  color: #ff5f73;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.forgot-form button:hover:not(:disabled) {
  background: rgba(255, 95, 115, 0.18);
  box-shadow: 0 0 24px rgba(255, 95, 115, 0.2);
}

.forgot-form button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.forgot-form button.is-success {
  color: var(--green);
  border-color: rgba(53, 226, 143, 0.45);
  background: rgba(53, 226, 143, 0.1);
}

.forgot-note {
  font-size: 10px;
  line-height: 1.8;
  color: rgba(255, 95, 115, 0.2);
}

@media (max-width: 560px) {
  .forgot-card {
    padding: 24px;
  }

  .forgot-card__header {
    align-items: flex-start;
    flex-direction: column;
  }
}
