@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Schibsted+Grotesk:wght@400;500;700;800;900&display=swap');

:root {
  --wl-blue: #0066A1;
  --wl-magenta: #E5006D;
  --wl-coral: #FF5A5F;
  --wl-orange: #FF8A4C;
  --wl-grad: linear-gradient(110deg, #E5006D 0%, #FF5A5F 60%, #FF8A4C 100%);
  --ink: #0B1A2B;
  --ink-soft: #3D4D5C;
  --ink-faint: #6B7A88;
  --line: #E4E8ED;
  --line-soft: #EEF1F5;
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --warn-bg: #FBF0DD;
  --warn: #B26A00;
  --danger: #C03030;
  --danger-bg: #FDECEC;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

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

.auth-hero {
  background: var(--wl-grad);
  color: #fff;
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.12), transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.auth-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.auth-hero h1 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 480px;
  text-wrap: balance;
}

.auth-hero p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 440px;
  margin: 0;
}

.auth-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 2px 6px rgba(11,26,43,.05), 0 8px 24px rgba(11,26,43,.06);
}

.auth-card h2 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}

.auth-card .auth-sub {
  color: var(--ink-faint);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.auth-card label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}

.auth-card input {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--wl-magenta);
  box-shadow: 0 0 0 3px rgba(229,0,109,.12);
}

.auth-card .auth-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 4px 0 0;
}

.auth-card button.primary {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--wl-grad);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.auth-card button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229,0,109,.28);
}

.auth-card button.primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth-err {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 8px;
  font-size: 13px;
}

.auth-ok {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #E6F4EE;
  color: #15966E;
  border-radius: 8px;
  font-size: 13px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.auth-links a {
  color: var(--wl-magenta);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover { text-decoration: underline; }

.auth-pending-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 18px;
}

.auth-center { text-align: center; }

.auth-loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
}

.auth-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--line);
  border-top-color: var(--wl-magenta);
  border-radius: 50%;
  margin-bottom: 12px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
