/* =====================================================
   AUTH PAGES — login, signup, password reset
   Split-screen · glass forms · LDS pink
   ===================================================== */

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF5F9 0%, #FEE8F2 50%, #FAF8F9 100%);
  position: relative;
  overflow: hidden;
}
.auth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb-a {
  width: 600px; height: 600px;
  top: -200px; left: -160px;
  background: radial-gradient(circle, #EEA3C1 0%, transparent 60%);
  opacity: 0.5;
}
.orb-b {
  width: 500px; height: 500px;
  bottom: -150px; right: -120px;
  background: radial-gradient(circle, #C76E92 0%, transparent 60%);
  opacity: 0.35;
}
.orb-c {
  width: 400px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #F5CCDD 0%, transparent 70%);
  opacity: 0.28;
}
.auth-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.3 0 0 0 0 0.4 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
  align-items: stretch;
}

/* ---------- BRAND PANEL (left) ---------- */
.auth-brand-panel {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-brand-link img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(199, 110, 146, 0.18));
}
.auth-brand-inner {
  margin: auto 0;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238,163,193,0.3);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink-ink);
  margin-bottom: 28px;
}
.auth-brand-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 20px;
  color: var(--ink);
}
.auth-brand-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink-dk) 0%, var(--pink) 60%, var(--pink-dk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 440px;
  margin: 0 0 40px;
  font-weight: 400;
}
.auth-mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 440px;
}
.amf {
  padding-left: 14px;
  border-left: 2px solid var(--pink);
  min-width: 0;
}
.amf-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.amf-lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
  margin-top: 6px;
  line-height: 1.3;
}

.auth-brand-foot {
  padding-top: 24px;
}
.auth-back {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
  font-weight: 600;
  transition: color .15s ease;
}
.auth-back:hover { color: var(--pink-ink); }

/* ---------- FORM PANEL (right) ---------- */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(11,12,14,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}
.auth-card-head {
  margin-bottom: 28px;
}
.auth-card-head h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.auth-card-head p {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
}
.auth-field > span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink-ink);
  margin-bottom: 8px;
}
.auth-field input,
.auth-field select,
.auth-field textarea {
  padding: 14px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: var(--sans);
}
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(238,163,193,0.2);
  background: #fff;
}
.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(183,45,59,0.1);
  border: 1px solid rgba(183,45,59,0.3);
  border-radius: 10px;
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.auth-error.show { display: block; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px 22px;
  font-size: 15px;
}
.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--mute);
}
.auth-link {
  color: var(--pink-ink);
  font-weight: 700;
  transition: color .15s ease;
}
.auth-link:hover { color: var(--pink-dk); }
.auth-link-muted {
  color: var(--mute);
  font-weight: 600;
  transition: color .15s ease;
}
.auth-link-muted:hover { color: var(--ink); }

.auth-foot {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .auth-brand-panel {
    padding: 24px 20px;
    min-height: auto;
  }
  .auth-brand-title { font-size: 36px; }
  .auth-brand-sub { font-size: 15px; margin-bottom: 24px; }
  .amf-num { font-size: 24px; }
  .auth-form-panel { padding: 12px 0; }
  .auth-card { padding: 32px 24px; }
}

@media (max-width: 540px) {
  .auth-shell {
    padding: 10px;
    gap: 10px;
  }
  .auth-brand-panel {
    padding: 20px 16px 10px;
  }
  .auth-brand-link img { height: 36px; }
  .auth-eyebrow {
    font-size: 10px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }
  .auth-brand-title { font-size: 30px; }
  .auth-brand-sub {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .auth-mini-features {
    gap: 14px;
  }
  .amf { padding-left: 10px; }
  .amf-num { font-size: 20px; }
  .amf-lbl { font-size: 9px; letter-spacing: 0.1em; }
  .auth-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .auth-card-head h2 { font-size: 26px; }
  .auth-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .auth-brand-foot { padding-top: 16px; padding-bottom: 4px; }
}

/* ---------- SIGNUP — slightly wider with sections ---------- */
.auth-card.wide { max-width: 520px; }
.auth-section {
  margin-bottom: 20px;
}
.auth-section-head {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink-ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(253,236,244,0.5);
  border: 1px solid rgba(238,163,193,0.3);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.auth-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--pink-dk);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-success {
  text-align: center;
  padding: 20px 10px 10px;
}
.auth-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dk) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(199,110,146,0.4);
}
.auth-success h2 {
  margin-bottom: 10px;
}
.auth-success p {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 24px;
}
