/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #b60000;
  --red-dark: #8a0000;
  --red-glow: rgba(182,0,0,0.18);
  --border:   #e4d9cf;
  --input-bg: #FAF6F2;
  --muted:    #7a6a58;
  --text:     #1a1208;
}

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: #0c0c0c;
}

/* ══════════════════════════════════════════════════════════
   PAGE WRAPPER — split background
══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
}

/* Left decorative panel (hidden on mobile) */
.auth-panel-left {
  flex: 1;
  background: #0c0c0c;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
}

/* Red radial glow center */
.auth-panel-left::before {
  content: '';
  position: absolute;
  top: 30%; left: 10%;
  width: 80%; height: 60%;
  background: radial-gradient(ellipse, rgba(182,0,0,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Diagonal red accent bar */
.auth-panel-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #b60000 30%, #b60000 70%, transparent);
}

.auth-left-logo {
  height: 52px;
  margin-bottom: 48px;
  filter: drop-shadow(0 0 16px rgba(182,0,0,0.5));
  position: relative;
  z-index: 1;
}

.auth-left-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.auth-left-title span { color: #ff4040; }

.auth-left-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  text-align: center;
  line-height: 1.65;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.auth-left-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  width: 100%;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.auth-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 16px;
}
.auth-perk-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.auth-perk-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.auth-perk-text strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  display: block;
  font-size: 0.82rem;
}

/* ── Right: form panel ───────────────────────────────────── */
.auth-panel-right {
  width: 520px;
  flex-shrink: 0;
  background: #F8F4F0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
}

/* Signup is wider */
.auth-page.signup .auth-panel-right {
  width: 620px;
}

/* Red top accent */
.auth-panel-right::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, #ff5555 100%);
  flex-shrink: 0;
}

.auth-form-wrap {
  padding: 48px 44px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Form header ─────────────────────────────────────────── */
.auth-form-header {
  margin-bottom: 32px;
}
.auth-form-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.auth-form-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 6px;
}
.auth-form-header p {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Section labels ──────────────────────────────────────── */
.auth-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}
.auth-section-label-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.auth-section-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-section-label:first-of-type { margin-top: 0; }

/* ── Fields ──────────────────────────────────────────────── */
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.auth-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.auth-field .optional {
  font-size: 0.65rem;
  font-weight: 400;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.auth-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6a58' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
  background: #fff;
}
.auth-field input::placeholder { color: #c4b8ad; }

/* Email hint */
.auth-email-hint {
  font-size: 0.73rem;
  color: var(--muted);
  padding: 9px 13px;
  background: #FFF8F6;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  margin: -4px 0 12px;
}

/* ── Submit button ───────────────────────────────────────── */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #cc0000, #b60000);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(182,0,0,0.38);
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  letter-spacing: 0.2px;
}
.auth-btn:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(182,0,0,0.55);
  transform: translateY(-1px);
}
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Footer links ────────────────────────────────────────── */
.auth-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.auth-footer-links a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}
.auth-footer-links a:hover { text-decoration: underline; }
.auth-footer-links span { color: #ccc; }

.auth-legal {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  color: #bbb;
  line-height: 1.6;
}
.auth-legal a {
  color: var(--muted);
  text-decoration: none;
}
.auth-legal a:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   MOBILE  (≤768px) — full width single column
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
    align-items: stretch;
  }

  /* Left panel becomes a slim dark header strip */
  .auth-panel-left {
    flex: none;
    padding: 28px 20px 24px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
  .auth-panel-left::after { display: none; }
  .auth-left-logo {
    height: 60px;
    margin-bottom: 0;
  }
  .auth-left-title {
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: 0;
  }
  .auth-left-sub,
  .auth-left-perks { display: none; }

  /* Right panel goes full width */
  .auth-panel-right,
  .auth-page.signup .auth-panel-right {
    width: 100%;
    flex: 1;
  }

  .auth-form-wrap { padding: 28px 20px 48px; }
  .auth-form-header { margin-bottom: 24px; }
  .auth-form-header h1 { font-size: 1.4rem; }

  .auth-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 400px) {
  .auth-panel-left { padding: 20px 16px; }
  .auth-left-title { font-size: 0.95rem; }
  .auth-form-wrap  { padding: 24px 16px 44px; }
}
