:root {
  color-scheme: light dark;
  --background: var(--atlas-background-light, #F7F9FC);
  --background-accent: #EDF4F7;
  --surface: #FFFFFF;
  --surface-subtle: #EDF2F7;
  --text: var(--atlas-night, #0B1220);
  --muted: var(--atlas-text-muted, #65758B);
  --border: #D6E0EA;
  --primary: #117C73;
  --primary-hover: #0D6B64;
  --primary-contrast: #FFFFFF;
  --focus: var(--atlas-teal, #16A394);
  --danger: #B42318;
  --danger-bg: #FFF0EE;
  --success-bg: var(--atlas-mint, #D9F4EE);
  --notice-bg: #E8F5F2;
  --notice-text: #0E625B;
  --shadow: 0 24px 70px rgba(11, 18, 32, 0.12);
}

@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora_400Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora_500Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora_600SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora_700Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora_800ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% -15%, rgba(22, 163, 148, 0.13), transparent 42%),
    linear-gradient(145deg, var(--background), var(--background-accent));
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.card {
  width: min(100%, 460px);
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(250px, 78%);
  margin: 0 auto 24px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 30px);
  line-height: 1.18;
}

.brand > p:last-child {
  margin: 9px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-text);
  font-size: 13px;
  line-height: 1.45;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.field input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(22, 163, 148, 0.2);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 8px 20px rgba(17, 124, 115, 0.2);
}

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

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.message {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  line-height: 1.5;
}

.message.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
}

.success-panel,
.recovery-start-panel {
  text-align: center;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.success-panel h2 {
  margin: 0;
  font-size: 22px;
}

.success-panel p,
.recovery-start-panel p {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.privacy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

[hidden] {
  display: none !important;
}

:root[data-theme="dark"] {
  --background: #07101D;
  --background-accent: #0B1728;
  --surface: var(--atlas-night, #0B1220);
  --surface-subtle: #111E30;
  --text: #F7F9FC;
  --muted: #A2B0C2;
  --border: #26364A;
  --primary: #36C7B8;
  --primary-hover: #49D4C5;
  --primary-contrast: #07101D;
  --danger: #FFB4AC;
  --danger-bg: #3B1716;
  --success-bg: #123D38;
  --notice-bg: #112F31;
  --notice-text: #B5EEE7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}
