:root {
  --bg: #0f0f12;
  --surface: #1a1a1f;
  --surface-2: #202028;
  --accent-red: #c9002b;
  --accent-pink: #ff0059;
  --text: #eeeeee;
  --muted: #9ca3af;
  --danger: #ef4444;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, rgba(255, 0, 89, 0.2), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(201, 0, 43, 0.2), transparent 40%), var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(170deg, rgba(32, 32, 40, 0.85), rgba(26, 26, 31, 0.95));
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.brand {
  margin-bottom: 18px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.1vw, 1.8rem);
}

.tagline {
  margin: 10px 0 0;
  line-height: 1.45;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.terms-check input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent-pink);
}

.terms-check a {
  color: #ffd1df;
}

.terms-check a:hover,
.terms-check a:focus-visible {
  color: #ffe4ec;
}

input:focus {
  border-color: rgba(255, 0, 89, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 0, 89, 0.14);
  background: var(--surface-2);
}

button {
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

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

.flash {
  min-height: 24px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.flash.error {
  color: var(--danger);
}

.flash.success {
  color: var(--ok);
}

.alt-link {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

a {
  color: #f4a2b8;
  transition: color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: #ffd1df;
}

@media (max-width: 768px) {
  body {
    padding: 18px;
  }

  .auth-shell {
    padding: 22px;
    border-radius: 16px;
  }

  button,
  input {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .auth-shell {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  form {
    gap: 12px;
  }
}
