:root {
  color-scheme: light;
  --bg-top: #f7f3e8;
  --bg-bottom: #dce8f2;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(20, 35, 58, 0.08);
  --text: #14233a;
  --muted: #5b677b;
  --success: #12715d;
  --success-soft: rgba(18, 113, 93, 0.12);
  --error: #b44b2f;
  --error-soft: rgba(180, 75, 47, 0.12);
  --accent: #1c5d99;
  --accent-pressed: #174d7f;
  --secondary-bg: rgba(20, 35, 58, 0.06);
  --secondary-border: rgba(20, 35, 58, 0.12);
  --shadow: 0 30px 90px rgba(20, 35, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(145deg, var(--bg-top), var(--bg-bottom));
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 620px);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.title {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
}

.subtitle,
.status-message,
.helper-text,
.help-list {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.subtitle,
.helper-text,
.help-list {
  color: var(--muted);
  line-height: 1.6;
}

.status-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 35, 58, 0.08);
}

.status-panel.success {
  background: var(--success-soft);
  border-color: rgba(18, 113, 93, 0.16);
}

.status-panel.error {
  background: var(--error-soft);
  border-color: rgba(180, 75, 47, 0.18);
}

.status-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 14px;
  background: rgba(20, 35, 58, 0.06);
}

.status-panel.success .status-icon {
  background: rgba(18, 113, 93, 0.16);
  color: var(--success);
}

.status-panel.error .status-icon {
  background: rgba(180, 75, 47, 0.18);
  color: var(--error);
}

.email-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 35, 58, 0.08);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: 600 1rem/1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-pressed);
}

.button.secondary {
  color: var(--text);
  background: var(--secondary-bg);
  border: 1px solid var(--secondary-border);
}

.hidden {
  display: none;
}

.details {
  margin-top: 18px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.help-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

@media (max-width: 640px) {
  .card {
    padding: 22px;
    border-radius: 24px;
  }

  .action-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
