/* ============================================================
   AUTH.CSS — Cyber-Gold Forensic Login Page Styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background-color: var(--bg-body);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ─────────────────────────────────────────
   LOGO & BRAND
───────────────────────────────────────── */
.auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.auth-logo-icon {
  color: var(--gold-primary);
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-xs);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.45));
}

.auth-brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-brand-tagline {
  font-size: 0.875rem;
  color: var(--cyan-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   ROLE SELECTOR
───────────────────────────────────────── */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.role-btn i { width: 18px; height: 18px; }

.role-btn:hover { color: var(--text-primary); }

.role-btn.active {
  background: var(--gold-bg);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────
   AUTH CARD
───────────────────────────────────────── */
.auth-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

.auth-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   FORM
───────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.input-icon i { width: 18px; height: 18px; }

.input-wrapper .form-control {
  padding-left: 42px;
}

.input-wrapper:focus-within .input-icon {
  color: var(--gold-primary);
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
}
.toggle-password i { width: 18px; height: 18px; }
.toggle-password:hover { color: var(--gold-primary); }

.btn-auth {
  width: 100%;
  padding: 14px;
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
}

/* ─────────────────────────────────────────
   ERROR BOX
───────────────────────────────────────── */
.auth-error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  color: var(--red-danger);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}
.auth-error i { width: 18px; height: 18px; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-footer i { width: 14px; height: 14px; margin-right: 4px; vertical-align: text-bottom; }

/* ─────────────────────────────────────────
   LOADING DOTS
───────────────────────────────────────── */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}
.loading-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

