/* ==========================================================================
   auth.css — Login, Register pages
   ========================================================================== */

:root {
  --auth-bg: #f4f6fb;
  --auth-card-bg: #fff;
  --auth-card-shadow: 0 8px 32px rgba(0,0,0,.10);
  --auth-brand-color: #0d6efd;
  --auth-eyebrow-color: #0d6efd;
}

[data-theme="dark"] {
  --auth-bg: #111827;
  --auth-card-bg: #1f2937;
  --auth-card-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* ── Page ───────────────────────────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

.auth-theme-toggle {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 100;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  background: var(--auth-card-bg);
  border-radius: 16px;
  box-shadow: var(--auth-card-shadow);
  padding: 2.25rem 2.5rem;
  width: 100%;
  max-width: 420px;
}

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

/* ── Brand ──────────────────────────────────────────────────────────────── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}

.auth-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--auth-brand-color);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.staff-brand-icon { background: #198754 !important; }

.auth-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.auth-brand small {
  display: block;
  font-size: .72rem;
  color: #6b7280;
}

/* ── Visual / logo ──────────────────────────────────────────────────────── */
.auth-visual {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-visual img {
  height: 52px;
  object-fit: contain;
}

/* ── Eyebrow ────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--auth-eyebrow-color);
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 3rem);
  height: 1px;
  background: #dee2e6;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-divider span {
  font-size: .78rem;
  color: #9ca3af;
  background: var(--auth-card-bg);
  padding: 0 .5rem;
  position: relative;
  z-index: 1;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.5rem;
  }
}
