/* =============================================================
   Auth pages (login / register) + account settings
   Tokens & components come from global.css.
   ============================================================= */

/* ── Split layout ──────────────────────────────────────────── */
.auth-body { min-height: 100vh; }
.auth-page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* Brand panel — always dark, regardless of theme */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background:
    radial-gradient(900px 520px at 85% 110%, rgba(227, 36, 59, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    #0a0b0d;
  color: #f2f3f5;
}
.auth-brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 55%, #000 30%, transparent 75%);
}
/* A slow scan line evokes an inspection camera */
.auth-brand-scan {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(227, 36, 59, 0.12) 85%, rgba(227, 36, 59, 0.5) 100%);
  border-bottom: 1px solid rgba(255, 90, 105, 0.6);
  animation: auth-scan 7s var(--ease) infinite;
  opacity: 0.7;
}
@keyframes auth-scan {
  0%   { transform: translateY(-160px); }
  100% { transform: translateY(110vh); }
}
.auth-brand-logo { position: relative; align-self: flex-start; height: 24px; width: auto; }
.auth-brand-copy { position: relative; max-width: 460px; }
.auth-brand-copy .eyebrow { color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.auth-brand-copy h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.auth-brand-points { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.auth-brand-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.78); font-size: var(--fs-md); }
.auth-brand-points .icon {
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ff8794;
}
.auth-brand-foot { position: relative; color: rgba(255, 255, 255, 0.35); font-size: var(--fs-xs); }

/* Form panel */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card-logo { display: none; align-self: flex-start; height: 20px; width: auto; margin-bottom: 28px; }
.auth-title { margin: 0; font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -0.01em; }
.auth-sub { margin-top: 8px; color: var(--text-2); font-size: var(--fs-md); }
.auth-card .flash-list { margin: 20px 0 0; }
.auth-card form { margin-top: 28px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.auth-card input[type="text"], .auth-card input[type="password"] { height: 44px; padding: 0 14px; font-size: var(--fs-lg); }

.remember-row { margin: -2px 0 22px; }
.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  user-select: none;
}

.auth-link { margin-top: 24px; color: var(--text-3); font-size: var(--fs-sm); text-align: center; }
.auth-link a { color: var(--brand); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card-logo { display: block; }
  .auth-panel { align-items: flex-start; padding-top: 72px; }
}

/* ── Account settings (inside the main shell) ─────────────── */
.settings-grid { display: grid; grid-template-columns: minmax(0, 560px); gap: 20px; }
.settings-card .card-body { padding: 24px; }
.settings-card .form-group:last-of-type { margin-bottom: 24px; }
