/* ── Auth page layout ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-brand {
  width: 420px;
  flex-shrink: 0;
  background: #241E1A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(200,75,49,.16);
  top: -80px; left: -80px;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(200,75,49,.12);
  bottom: -50px; right: -50px;
}

.auth-brand-inner { position: relative; z-index: 1; text-align: center; }

.auth-logo {
  display: inline-flex;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.auth-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.auth-tagline {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  margin-bottom: 40px;
}

.auth-features { list-style: none; text-align: left; }

.auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  padding: 8px 0;
}

.auth-features li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Auth form side ────────────────────────────────────────── */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--white);
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
}

.auth-form-box h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth-form-box .auth-subtitle {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: 26px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--gray-600);
}

.auth-footer a { font-weight: 600; color: var(--orange); }

.auth-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
}

.auth-back:hover { color: var(--orange); text-decoration: none; }

.form-alert {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: var(--text-sm);
}

.field-error { color: var(--danger); font-size: var(--text-xs); }

.field-error:empty { display: none; }

.field-checkbox { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; }

.field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--gray-600);
  cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange);
}

.field-checkbox a { color: var(--orange); font-weight: 600; }

.form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.form-meta a { color: var(--orange); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--gray-400);
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-side { padding: 32px 20px; }
  .auth-row { grid-template-columns: 1fr; }
}
