/* ==========================================================================
   STEROFOREX — Premium auth pages (login / register)
   Self-contained. Matches the marketing site: navy + blue + gold,
   Fraunces serif display over Inter body. No Tailwind dependency.
   ========================================================================== */
:root {
  --navy-900: #070b1e;
  --navy-800: #0b1437;
  --navy-700: #0f1c44;
  --navy-600: #16264f;
  --blue:      #4361ee;
  --blue-600:  #3651d4;
  --blue-tint: #eaeefe;
  --gold:      #c8a24b;
  --gold-soft: #e4c77e;
  --ink:    #0e1428;
  --body:   #3a4256;
  --slate:  #5a6478;
  --muted:  #8b93a7;
  --line:   #e5e8f0;
  --line-2: #dfe3ee;
  --mist:   #f6f8fc;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue-600); }

/* ---- Layout ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 0.92fr; }

/* ---- Brand panel ---- */
.auth__brand { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; display: flex; }
.auth__brand-bg { position: absolute; inset: 0; }
.auth__brand-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.05); }
.auth__brand-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,30,.7), rgba(7,11,30,.82)),
    linear-gradient(115deg, rgba(7,11,30,.85) 0%, rgba(7,11,30,.35) 70%);
}
.auth__grid-lines {
  position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 25% 30%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 25% 30%, #000, transparent 78%);
}
.auth__glow {
  position: absolute; z-index: 1; width: 420px; height: 420px; border-radius: 50%;
  filter: blur(90px); background: rgba(67,97,238,.45); bottom: -120px; left: -80px; pointer-events: none;
}
.auth__brand-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  padding: clamp(40px, 5vw, 64px); width: 100%;
}
.auth__logo img { width: 190px; filter: brightness(0) invert(1); }
.auth__brand-body { margin-top: auto; }
.auth__eyebrow-dark {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft);
}
.auth__eyebrow-dark::before { content: ""; width: 26px; height: 1px; background: var(--gold-soft); opacity: .8; }
.auth__headline {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 18px;
}
.auth__headline .accent { color: var(--gold-soft); font-style: italic; }
.auth__sub { color: #cdd6f5; font-size: 1.05rem; line-height: 1.65; margin: 0 0 32px; max-width: 440px; }
.auth__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth__points li { display: flex; align-items: center; gap: 13px; color: #dbe2f6; font-size: .98rem; }
.auth__points .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(228,199,126,.16); color: var(--gold-soft);
}
.auth__points .tick svg { width: 14px; height: 14px; }

/* ---- Form panel ---- */
.auth__form-wrap { display: grid; place-items: center; padding: clamp(32px, 5vw, 56px); background: #fff; }
.auth__card { width: 100%; max-width: 424px; }
.auth__mobile-logo { display: none; margin-bottom: 30px; }
.auth__mobile-logo img { width: 172px; }
.auth__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
}
.auth__eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--blue); opacity: .7; }
.auth h1 {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 10px;
}
.auth__lead { color: var(--slate); font-size: 1rem; margin: 0 0 30px; }
.auth__lead a { font-weight: 600; }

/* ---- Fields ---- */
.auth__field { margin-bottom: 18px; }
.auth__field label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--ink);
  margin-bottom: 8px; letter-spacing: .01em;
}
.auth__input-wrap { position: relative; }
.auth__field input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--mist);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.auth__field input::placeholder { color: var(--muted); }
.auth__field input:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(67,97,238,.12);
}
.auth__field input.has-toggle { padding-right: 48px; }
.auth__toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); border-radius: 9px;
}
.auth__toggle:hover { color: var(--blue); background: var(--blue-tint); }
.auth__toggle svg { width: 20px; height: 20px; }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth__forgot { font-size: .9rem; font-weight: 600; }

/* ---- Button ---- */
.auth__btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: #fff;
  background: var(--blue); box-shadow: 0 18px 40px -16px rgba(67,97,238,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.auth__btn:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 24px 48px -16px rgba(67,97,238,.6); }
.auth__btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.auth__btn:hover svg { transform: translateX(3px); }

/* ---- Alerts ---- */
.auth__alert {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 11px;
  font-size: .9rem; line-height: 1.5; margin-bottom: 22px;
}
.auth__alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.auth__alert--error { background: #fdeceb; color: #b02a1f; border: 1px solid #f6d3cf; }
.auth__alert--success { background: #eaf7ef; color: #1c7a44; border: 1px solid #cbe9d5; }
.auth__alert--info { background: var(--blue-tint); color: var(--blue-600); border: 1px solid #d6ddfb; }

/* ---- Success / invite empty states ---- */
.auth__state { text-align: center; padding: 8px 0 4px; }
.auth__state-ic {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
}
.auth__state-ic.ok { background: #eaf7ef; color: #1c7a44; }
.auth__state-ic.warn { background: #fff5e6; color: var(--gold); }
.auth__state-ic svg { width: 30px; height: 30px; }
.auth__state h1 { margin-bottom: 12px; }
.auth__state p { color: var(--slate); font-size: 1rem; line-height: 1.7; margin: 0 0 26px; }

/* ---- Footer note ---- */
.auth__foot { margin-top: 28px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__mobile-logo { display: flex; }
  .auth__form-wrap { min-height: 100vh; align-items: flex-start; padding-top: 56px; }
}
@media (max-width: 480px) {
  .auth__form-wrap { padding-left: 22px; padding-right: 22px; }
}
