/* ─── Auth Pages — Shared Styles ─── */

.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  background: var(--bg, #faf5ec);
  color: var(--ink, #26221f);
}

/* ─── Split Layout ─── */

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .auth-split {
    grid-template-columns: 45% 55%;
  }
}

/* ─── Left Brand Panel ─── */

.auth-panel-brand {
  display: none;
  background: var(--ink, #26221f);
  color: var(--cream, #faf5ec);
  padding: 48px 40px;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-panel-brand {
    display: flex;
  }
}

.auth-panel-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(232, 92, 51, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(233, 161, 59, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.auth-panel-brand__waves {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}

.auth-panel-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.auth-panel-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream, #faf5ec);
  font-family: var(--font-display, 'Bricolage Grotesque', Inter, sans-serif);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 32px;
}

.auth-panel-brand__tagline {
  font-family: var(--font-display, 'Bricolage Grotesque', Inter, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--cream, #faf5ec);
}

.auth-panel-brand__features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-panel-brand__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(250, 245, 236, 0.82);
}

.auth-panel-brand__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-panel-brand__trust {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250, 245, 236, 0.45);
}

/* ─── Mobile Brand Header ─── */

.auth-panel-brand-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink, #26221f);
  padding: 28px 20px;
  min-height: 100px;
}

.auth-panel-brand-mobile__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream, #faf5ec);
  font-family: var(--font-display, 'Bricolage Grotesque', Inter, sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
}

.auth-panel-brand-mobile__tagline {
  font-size: 0.8rem;
  color: rgba(250, 245, 236, 0.65);
  margin: 6px 0 0;
  text-align: center;
}

@media (min-width: 768px) {
  .auth-panel-brand-mobile {
    display: none;
  }
}

/* ─── Right Panel / Form Area ─── */

.auth-panel-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg, #faf5ec);
}

@media (min-width: 768px) {
  .auth-panel-form {
    padding: 48px 56px;
  }
}

/* ─── Original Shell (kept for backward compat) ─── */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ─── Brand Link (in-card, hidden on split layout desktop) ─── */

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, #26221f);
  font-family: var(--font-display, 'Bricolage Grotesque', Inter, sans-serif);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.auth-split .auth-brand {
  display: none;
}

/* ─── Auth Card ─── */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line, #eae3d5);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(38, 34, 31, 0.08);
}

.auth-card--wide {
  max-width: 480px;
}

@media (min-width: 768px) {
  .auth-split .auth-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    max-width: 400px;
  }

  .auth-split .auth-card--wide {
    max-width: 440px;
  }
}

/* ─── Entrance Animation ─── */

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: authFadeUp 0.45s ease-out both;
}

.auth-panel-brand__inner {
  animation: authFadeUp 0.5s ease-out 0.1s both;
}

/* ─── Typography ─── */

.auth-card h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Bricolage Grotesque', Inter, sans-serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.auth-lede {
  margin: 0 0 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #6e675f);
}

.auth-step {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral, #e85c33);
}

/* ─── Form ─── */

.auth-form label {
  display: block;
  margin-bottom: 14px;
}

.auth-form label span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6e675f);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #eae3d5);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input:hover {
  border-color: var(--slate-soft, #9c9388);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--coral, #e85c33);
  box-shadow: 0 0 0 3px rgba(232, 92, 51, 0.12);
  background: #fff;
}

.auth-form input::placeholder {
  color: var(--slate-soft, #9c9388);
}

/* ─── Password Toggle ─── */

.auth-pw-wrap {
  position: relative;
}

.auth-pw-wrap input {
  padding-right: 44px;
}

.auth-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--slate-soft, #9c9388);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.auth-pw-toggle:hover {
  color: var(--ink, #26221f);
}

.auth-pw-toggle .icon-hide {
  display: none;
}

.auth-pw-wrap.is-visible .auth-pw-toggle .icon-show {
  display: none;
}

.auth-pw-wrap.is-visible .auth-pw-toggle .icon-hide {
  display: block;
}

.auth-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted, #6e675f);
}

/* ─── Button ─── */

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #e85c33, #e9a13b);
  color: #fff;
  margin-top: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 2px 8px rgba(232, 92, 51, 0.2);
}

.auth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 92, 51, 0.3);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 92, 51, 0.15);
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-btn--ghost {
  background: transparent;
  border: 1px solid var(--line, #eae3d5);
  color: var(--muted, #6e675f);
  font-weight: 600;
  box-shadow: none;
}

.auth-btn--ghost:hover:not(:disabled) {
  background: rgba(38, 34, 31, 0.03);
  border-color: var(--slate-soft, #9c9388);
  box-shadow: none;
  transform: none;
}

/* ─── Actions Grid ─── */

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 6px;
}

.auth-actions .auth-btn {
  margin-top: 0;
}

/* ─── Error / Success ─── */

.auth-err {
  color: #c4473b;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.auth-ok {
  color: #3e7c59;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

/* ─── Footer Links ─── */

.auth-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, #6e675f);
}

.auth-foot a {
  color: var(--coral, #e85c33);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-foot a:hover {
  color: var(--coral-deep, #c8472f);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .auth-split .auth-foot {
    text-align: left;
  }
}

/* ─── Divider ─── */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.75rem;
  color: var(--slate-soft, #9c9388);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #eae3d5);
}
