:root {
  --bg-base: #0A0F1E;
  --bg-surface: #101828;
  --bg-border: #1E2D42;
  --text-primary: #F0F4FF;
  --text-secondary: #8A9BC4;
  --text-muted: #4A5A7A;
  --accent-teal: #15B5AA;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #0A0F1E;
  color: #F0F4FF;
  font-family: var(--font-body);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  background: #0A0F1E;
}

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

.auth-brand {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 40px 48px;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #0B3D91 0%, #0A6B6E 55%, #0A0F1E 100%);
  color: #fff;
}

@media (min-width: 960px) {
  .auth-brand { display: flex; }
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: radial-gradient(circle at 20% 20%, #5eead4 0.9px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  right: -96px;
  bottom: -96px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,.35) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
  height: 48px;
  width: auto;
  max-width: 280px;
  display: block;
}

.auth-brand h1 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.auth-brand p {
  margin: 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}

.auth-brand .foot { margin: 0; }

.auth-brand .foot-logo {
  height: 52px;
  width: auto;
  max-width: 280px;
  display: block;
  opacity: .9;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-logo { margin-bottom: 28px; }
.auth-card-logo .auth-logo { height: 48px; max-width: 280px; }

@media (max-width: 959px) {
  .auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }
}

.auth-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 650;
}

.auth-card .lead {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.auth-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3581EF 0%, #1BB5B1 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: filter .15s ease;
}

.auth-cta:hover { filter: brightness(1.06); }
.auth-cta.is-disabled {
  opacity: .55;
  pointer-events: none;
  cursor: wait;
}

.auth-error {
  margin: 0 0 16px;
  color: #ff8a80;
  font-size: 14px;
}

.auth-help {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.auth-help a { color: var(--accent-teal); }

.auth-legal {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-legal a {
  color: var(--accent-teal);
  margin-right: 14px;
  text-decoration: none;
}
