/* SLA Wins — Auth (login) */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --auth-bg: #060608;
  --auth-surface: rgba(14, 14, 18, 0.72);
  --auth-border: rgba(245, 196, 81, 0.22);
  --auth-gold: #f5c451;
  --auth-gold-soft: #fff0c9;
  --auth-gold-dim: rgba(245, 196, 81, 0.12);
  --auth-ink: #f4f4f5;
  --auth-muted: #9ca3af;
  --auth-discord: #5865f2;
  --auth-radius: 20px;
  --auth-font-display: 'Syne', system-ui, sans-serif;
  --auth-font-body: 'DM Sans', system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  margin: 0;
}

body.auth-page {
  font-family: var(--auth-font-body);
  color: var(--auth-ink);
  background: var(--auth-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background layers ── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(245, 196, 81, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 82%, rgba(255, 240, 201, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 120%, rgba(245, 196, 81, 0.04) 0%, transparent 45%),
    var(--auth-bg);
}

.auth-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.auth-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 20%, transparent 75%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.auth-orb--1 {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  left: -6%;
  background: rgba(245, 196, 81, 0.18);
}

.auth-orb--2 {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  bottom: -10%;
  right: -4%;
  background: rgba(255, 240, 201, 0.1);
}

.auth-orb--3 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  top: 42%;
  left: 38%;
  background: rgba(245, 196, 81, 0.06);
}

/* ── Layout ── */
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

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

/* ── Brand panel (desktop) ── */
.auth-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

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

.auth-brand__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-gold);
  margin: 0 0 1.25rem;
}

.auth-brand__title {
  font-family: var(--auth-font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.auth-brand__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--auth-gold) 0%, var(--auth-gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--auth-muted);
  max-width: 36ch;
  margin: 0 0 2.5rem;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  color: #d4d4d8;
}

.auth-feature__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--auth-gold-dim);
  color: var(--auth-gold);
  font-size: 1.125rem;
}

.auth-brand__footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ── Login panel ── */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  min-height: min(100vh, 100dvh);
}

.auth-card {
  width: min(440px, 100%);
  position: relative;
}

.auth-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--auth-radius) + 2px);
  background: linear-gradient(
    145deg,
    rgba(245, 196, 81, 0.35) 0%,
    rgba(255, 240, 201, 0.08) 40%,
    rgba(245, 196, 81, 0.2) 100%
  );
  opacity: 0.55;
  filter: blur(18px);
  z-index: 0;
}

.auth-card__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--auth-radius);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 64px -24px rgba(0, 0, 0, 0.65);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-logo img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(245, 196, 81, 0.28));
}

.auth-logo__fallback {
  font-family: var(--auth-font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card__title {
  font-family: var(--auth-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.auth-card__subtitle {
  font-size: 0.9375rem;
  color: var(--auth-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.auth-btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border: none;
  border-radius: 14px;
  font-family: var(--auth-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #6270f3 0%, var(--auth-discord) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 32px -8px rgba(88, 101, 242, 0.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.auth-btn-discord::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}

.auth-btn-discord:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 16px 40px -6px rgba(88, 101, 242, 0.65);
}

.auth-btn-discord:focus-visible {
  outline: 2px solid var(--auth-gold);
  outline-offset: 3px;
}

.auth-btn-discord svg {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
}

.auth-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.5;
}

.auth-hint strong {
  color: var(--auth-gold);
  font-weight: 600;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #52525b;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.auth-trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.auth-trust__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.auth-trust__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-gold);
  box-shadow: 0 0 8px rgba(245, 196, 81, 0.6);
}

.auth-mobile-brand {
  display: block;
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.auth-mobile-brand .auth-brand__title {
  font-size: 2rem;
  max-width: none;
  margin: 0 auto 0.35rem;
}

.auth-mobile-brand .auth-brand__lead {
  font-size: 0.875rem;
  margin: 0 auto;
  max-width: 32ch;
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb {
    animation: none !important;
  }
}
