:root {
  color-scheme: dark;
  --bg: #06101b;
  --panel: rgba(10, 19, 33, 0.9);
  --panel-soft: rgba(14, 24, 39, 0.72);
  --text: #eff6ff;
  --muted: #9cb0cb;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #46d5ff;
  --accent-strong: #1788ff;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(70, 213, 255, 0.22), transparent 28%),
    linear-gradient(155deg, #06101b 0%, #0d1b2f 48%, #08111f 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
  gap: 24px;
}

.auth-brand,
.auth-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-brand {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-card {
  padding: 32px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-soft);
}

.tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(7, 15, 27, 0.82);
  border: 1px solid var(--border);
}

.tab-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.tab-link.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #04111f;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 15, 27, 0.82);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: rgba(70, 213, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(70, 213, 255, 0.12);
}

.button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #04111f;
  cursor: pointer;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 15, 27, 0.82);
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.flash-success {
  border-color: rgba(52, 211, 153, 0.42);
  color: #bbf7d0;
}

.small-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.small-text a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    order: 2;
  }
}
