:root {
  color-scheme: dark;
  --background: #07100d;
  --surface: rgba(15, 30, 24, 0.92);
  --surface-border: rgba(118, 255, 190, 0.14);
  --text: #f2fff8;
  --muted: #9bb4a8;
  --green: #48e59b;
  --green-dark: #153e2d;
  --discord: #5865f2;
  --danger: #ff7878;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(45, 196, 124, 0.2),
      transparent 38rem
    ),
    var(--background);
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.login-card {
  width: min(100%, 31rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid var(--surface-border);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(1rem);
}

.brand-mark {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 1.4rem;
  color: #052116;
  background: linear-gradient(
    135deg,
    #8affc2,
    var(--green)
  );
  font-size: 2.25rem;
  font-weight: 900;
  box-shadow: 0 1rem 2rem rgba(72, 229, 155, 0.2);
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1;
}

.subtitle {
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.mode-badge {
  margin: 1.5rem 0;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(72, 229, 155, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-dark);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  font-weight: 700;
}

.login-options {
  display: grid;
  gap: 0.85rem;
}

.oauth-button,
.primary-link {
  min-height: 3.25rem;
  display: grid;
  place-items: center;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 1rem;
  color: white;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.oauth-button:not(:disabled):hover,
.primary-link:hover {
  transform: translateY(-2px);
}

.oauth-button.google {
  color: #1f1f1f;
  background: #ffffff;
}

.oauth-button.discord {
  background: var(--discord);
}

.oauth-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.security-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.error-code {
  color: var(--danger);
  font-size: clamp(3rem, 15vw, 6rem);
  font-weight: 900;
}

.primary-link {
  margin-top: 1.5rem;
  color: #052116;
  background: var(--green);
}

@media (max-width: 32rem) {
  .login-card {
    border-radius: 1.25rem;
rem;
  }
}