/* ════════════════════════════════════════════════════════════════════════
   AUTH SECTION
   ════════════════════════════════════════════════════════════════════════ */
.auth-section {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #edf1f5;
}

:root[data-theme='dark'] .auth-section {
  background: #111622;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-topbar {
  height: 56px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-topbar__left,
.auth-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-logo-slot {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  background: #0f1117;
  color: #00d4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.auth-topbar-btn {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 12px;
  background: var(--color-surface);
  color: var(--color-text);
}

.auth-topbar-btn--icon {
  width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-topbar-btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.auth-topbar-btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.auth-topbar-btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.theme-toggle-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-theme-toggle {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page__header-actions .dashboard-theme-toggle {
  margin-left: var(--space-1);
}

/* ── Auth card ─────────────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 500px;
  margin: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 34px 38px 30px;
  box-shadow: var(--shadow-lg);
}

.auth-card--register {
  max-width: 560px;
  border-color: var(--color-accent-ring);
  box-shadow: 0 14px 34px -20px rgba(210, 0, 255, 0.45), var(--shadow-lg);
}

/* ── Auth form ─────────────────────────────────────────────────────────── */
.auth-form {
  margin: 0;
  animation: auth-fade-in var(--transition-base) ease-out;
}

.auth-form--hidden {
  display: none;
}

@keyframes auth-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-view-head {
  margin-bottom: 22px;
}

.auth-view-title {
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 650;
}

.auth-view-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.btn--auth {
  height: 44px;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.auth-switch--muted {
  color: var(--color-text-tertiary);
}

.auth-register-note {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--color-surface-muted);
  display: grid;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 12px;
}

.auth-register-note strong {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--color-primary);
}

.auth-register-note span {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.auth-msg {
  margin-top: 12px;
  min-height: 20px;
  font-size: 0.84rem;
  color: var(--color-error);
  text-align: center;
}

.auth-msg:empty {
  display: none;
}

.auth-msg.is-success {
  color: var(--color-success);
}


