/* ============================================================
   PKAP — auth.css  |  Login & Registration Styles
   ============================================================ */

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left Panel — Branding ──────────────────────────────────── */
.auth-brand {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(200,32,46,0.15);
  border-radius: 50%;
}
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.auth-brand-logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.auth-brand-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}
.auth-brand-logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  display: block;
}
.auth-brand-content { position: relative; z-index: 1; }
.auth-brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}
.auth-brand-title span { color: var(--red-light); }
.auth-brand-desc { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; }
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}
.auth-feature-icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.auth-brand-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.auth-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.auth-stat-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}
.auth-stat-l { font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* ── Right Panel — Form ─────────────────────────────────────── */
.auth-form-panel {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
}
.auth-form-box { width: 100%; max-width: 440px; }
.auth-form-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-sub   { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.role-option { display: none; }
.role-option + label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.role-option + label .role-emoji { font-size: 1.3rem; }
.role-option + label .role-name  { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }
.role-option:checked + label {
  border-color: var(--navy);
  background: var(--bg-subtle);
  color: var(--navy);
}
.role-option:checked + label .role-name { color: var(--navy); }

/* Demo creds box */
.demo-creds {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}
.demo-creds-title { font-weight: 700; color: var(--text-primary); margin-bottom: 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.demo-creds-row   { display: flex; justify-content: space-between; color: var(--text-secondary); margin-bottom: 2px; }
.demo-creds-row code { font-family: monospace; font-size: 0.82rem; color: var(--navy); font-weight: 600; }

/* Remember row */
.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.auth-remember label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text-secondary); }
.auth-remember a { color: var(--navy); font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { padding: 32px 24px; }
}
