/* ============================================================================
   Auth — split-screen sign in / sign up
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

/* left brand panel */
.auth-brandpanel {
  position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column;
  color: #fff; background: linear-gradient(155deg, #C9764C, #E8956A 55%, #3FB28F 140%);
}
.auth-brandpanel::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(45% 60% at 85% 10%, rgba(255,255,255,.35), transparent 60%),
              radial-gradient(50% 60% at 10% 95%, rgba(63,178,143,.6), transparent 60%); }
.auth-brandpanel > * { position: relative; z-index: 1; }
.auth-brand { display: inline-flex; align-items: center; color: #fff; }
.auth-brand .wordmark { height: 32px; }
.auth-brandpanel .lead { margin-top: auto; }
.auth-brandpanel h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); max-width: 16ch; line-height: 1.12; }
.auth-brandpanel .lead p { opacity: .92; margin-top: 16px; font-size: 16px; max-width: 36ch; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-points .p { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.auth-points .p .d { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.auth-mini { margin-top: 32px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 18px; backdrop-filter: blur(6px); max-width: 340px; }
.auth-mini .row { justify-content: space-between; }
.auth-mini .big { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* right form panel */
.auth-formpanel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; z-index: 2; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.auth-form h1 { font-size: 30px; }
.auth-form .subtitle { color: var(--muted); margin-top: 6px; }
.auth-tabs { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 11px; margin-bottom: 24px; border: 1px solid var(--border); }
.auth-tabs a { padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s; }
.auth-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-form .field { margin-bottom: 16px; }
.auth-form .field .with-icon { position: relative; }
.auth-form .field .with-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.auth-form .field .with-icon .input { padding-left: 42px; }
.auth-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin: 6px 0 22px; }
.auth-meta-row label { display: flex; gap: 7px; align-items: center; color: var(--muted); cursor: pointer; }
.auth-meta-row a { color: var(--brand-primary-dark); font-weight: 600; }
.auth-err { background: var(--danger-tint); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 9px; align-items: center; }
.auth-note { background: var(--mint-tint); color: var(--success); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 18px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12.5px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--brand-primary-dark); font-weight: 600; }
.auth-back { color: var(--muted); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.auth-back:hover { color: var(--text); }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brandpanel { display: none; }
}
