/* Sign-in uses the same Astra tokens as the application. */
:root,
[data-theme="dark"] {
  --bg: #0b100d;
  --surface: #151c18;
  --border: #2a3930;
  --border2: #475d4d;
  --text: #f3f5f2;
  --text2: #cbd5cc;
  --accent: #9acda7;
  --accent-soft: rgba(154, 205, 167, .12);
  color-scheme: dark;
}

[data-theme="darker"] {
  --bg: #080c0a;
  --surface: #101713;
  --border: #24332a;
  --border2: #415a48;
  --text: #f3f5f2;
  --text2: #c8d3c9;
  --accent: #a3d5ae;
  --accent-soft: rgba(163, 213, 174, .12);
}

[data-theme="light"] {
  --bg: #f5f7f5;
  --surface: #ffffff;
  --border: #d6dfd7;
  --border2: #aec3b1;
  --text: #202c23;
  --text2: #4b6050;
  --accent: #176b43;
  --accent-soft: rgba(23, 107, 67, .11);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-soft), transparent 80%), var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(2, 12, 6, .25);
  text-align: center;
}

.logo { display: block; margin: 0 auto 12px; }
.brand { display: block; margin-bottom: 26px; color: var(--accent); font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 750; letter-spacing: .08em; }

h1 { margin: 0 0 10px; font-family: "Montserrat", sans-serif; font-size: 28px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }

p { margin: 0 0 28px; color: var(--text2); font-size: 15px; line-height: 1.5; }

code { font-size: 13px; color: var(--text); }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.button--primary:hover { background: var(--accent); color: var(--bg); filter: brightness(1.12); }

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

@media (max-width: 400px) {
  .card { padding: 32px 20px; }
  .button { padding-inline: 12px; }
}

/* The secondary route in, under the main button rather than beside it. */
.muted { margin: 16px 0 0; font-size: 13px; }
.muted a { color: var(--text2); }
