*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F2D24B;
  --gold: #907904;
  --gold-hover: #786403;
  --gold-pale: rgba(144,121,4,0.1);
  --bg: #FAFAF5;
  --fg: #141008;
  --card: #FFFFFF;
  --border: #D8D4C4;
  --border-light: #E8E4D8;
  --muted: #6E6A5A;
  --dark: #141008;
  --dark-2: #1C1710;
  --cream: #FAF6EE;
  --muted-dark: rgba(250,246,238,0.55);
  --border-dark: rgba(144,121,4,0.18);
  --destructive: #b83232;
  --radius: 6px;
}

html, body { min-height: 100%; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--fg); }

/* ── Layout ──────────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 100vh;
}

/* ── Brand panel (right) ─────────────────────────────────── */
.brand-panel {
  background: var(--dark);
  padding: 52px 56px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; align-self: start; height: 100vh;
  overflow: hidden;
}
.brand-panel::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(242,210,75,0.10) 0%, transparent 55%),
    radial-gradient(circle at 88% 92%, rgba(144,121,4,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.brand-blob {
  position: absolute; z-index: 0; pointer-events: none;
  right: -12%; bottom: -18%; width: 62%; height: 62%; min-width: 340px; min-height: 340px;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 35% 30%, rgba(242,210,75,0.22) 0%, rgba(144,121,4,0.16) 45%, transparent 75%);
  filter: blur(2px);
}
.brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }

.brand-logo { display: inline-block; }
.brand-logo img { height: 34px; width: auto; display: block; }

.brand-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.brand-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 18px;
}
.brand-eyebrow-top { margin-top: 16px; margin-bottom: auto; }
.brand-headline {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.05;
  color: var(--cream); margin-bottom: 28px;
}
.brand-headline em { font-style: normal; color: var(--yellow); font-weight: 800; }
.brand-sub {
  font-size: 1rem; font-weight: 300; color: var(--muted-dark);
  line-height: 1.75; max-width: 420px;
}

.brand-trustline {
  font-size: 0.86rem; color: var(--muted-dark);
  margin-top: 20px;
}
.brand-trustline strong { color: var(--yellow); font-weight: 600; }

/* ── Form panel (left) ───────────────────────────────────── */
.form-panel { position: relative; background: var(--bg); padding: 48px 56px; min-height: 100vh; display: flex; align-items: center; }
.form-panel-inner { width: 100%; max-width: 400px; margin: 0 auto; }

.form-mobile-logo { display: none; }
.form-mobile-logo img { height: 34px; }

.form-topbar {
  position: absolute; top: 48px; left: 56px; right: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.form-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.84rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.18s;
}
.form-back:hover { color: var(--fg); }
.form-back svg { width: 13px; height: 13px; }
.form-signin-link { font-size: 0.84rem; font-weight: 500; color: var(--gold); text-decoration: none; }
.form-signin-link:hover { text-decoration: underline; }

.form-hero { margin-bottom: 32px; }
.form-hero .hero-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.form-hero h1 { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; line-height: 1.15; color: var(--fg); }
.form-hero h1 em { font-style: italic; color: var(--gold); }
.form-hero p { margin-top: 12px; font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

/* ── Sign-in button ───────────────────────────────────────── */
.ms-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 18px; border-radius: 7px;
  border: 1.5px solid var(--border); background: #fff; color: var(--fg);
  font-family: inherit; font-size: 1.02rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s;
}
.ms-btn:hover { border-color: var(--gold); }
.ms-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-foot { margin-top: 22px; text-align: center; font-size: 0.92rem; color: var(--muted); }
.auth-foot a { color: var(--gold); font-weight: 500; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-mobile-logo { display: block; margin-bottom: 24px; }
  .form-panel { padding: 76px 24px 64px; align-items: flex-start; min-height: auto; }
  .form-topbar { top: 24px; left: 24px; right: 24px; }
}
