/* ============================================================
   BAC ONLINE EXAMINATION PORTAL — STYLES.CSS
   Palette: Deep Green, Orange, Gold, Cream (matching BAC brand)
   Fonts: Cormorant Garamond (display) + Montserrat (UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --green-deep:    #1a4a1a;
  --green-mid:     #2d6e2d;
  --green-bright:  #3a8a3a;
  --green-light:   #edf5ed;
  --green-glass:   rgba(26,74,26,0.07);
  --orange:        #c8680a;
  --orange-light:  #e8841c;
  --orange-pale:   rgba(200,104,10,0.10);
  --gold:          #c8960a;
  --gold-pale:     rgba(200,150,10,0.12);
  --cream:         #faf8f3;
  --white:         #ffffff;
  --ink:           #1a1611;
  --slate:         #3a3a3a;
  --muted:         #6a6a6a;
  --muted-light:   #9a9a9a;
  --border:        rgba(26,74,26,0.13);
  --border-light:  rgba(26,74,26,0.07);
  --border-gold:   rgba(200,150,10,0.25);
  --red:           #c0392b;
  --red-pale:      rgba(192,57,43,0.10);
  --blue:          #1a6e9a;
  --blue-pale:     rgba(26,110,154,0.10);

  --shadow-xs:     0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm:     0 2px 14px rgba(0,0,0,0.07);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.13);
  --shadow-green:  0 8px 30px rgba(26,74,26,0.18);
  --shadow-orange: 0 8px 30px rgba(200,104,10,0.22);

  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     20px;

  --sidebar-w:     260px;
  --header-h:      64px;
  --transition:    all 0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.35;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; border: none; border-radius: var(--radius-sm);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--green-deep); color: var(--white); box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: var(--shadow-orange); }
.btn-orange:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn-gold { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--green-glass); color: var(--ink); border-color: var(--border); }
.btn-danger { background: transparent; color: var(--red); border: 1.5px solid rgba(192,57,43,0.4); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 9px; }
.btn-lg { padding: 14px 34px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }
.btn i { font-size: 12px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.7; }
.badge-green { background: var(--green-light); color: var(--green-deep); border: 1px solid var(--border); }
.badge-orange { background: var(--orange-pale); color: var(--orange); }
.badge-gold { background: var(--gold-pale); color: #a07a00; }
.badge-red { background: var(--red-pale); color: var(--red); }
.badge-blue { background: var(--blue-pale); color: var(--blue); }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--slate);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,110,45,0.09);
}
.form-group textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-group select { cursor: pointer; }
.form-hint { font-size: 10px; color: var(--muted); margin-top: 3px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.card-sub { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 500; }

/* ===== SHARED TOPBAR / NAV ===== */
.topbar {
  height: var(--header-h);
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  position: sticky; top: 0; z-index: 50;
}

/* Left: logo image slot + title */
.topbar-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.topbar-logo-img {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.topbar-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.topbar-logo-img .logo-placeholder { color: rgba(255,255,255,0.5); font-size: 20px; }

.topbar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--white);
}
.topbar-sub { font-size: 9px; color: rgba(255,255,255,0.45); font-weight: 500; letter-spacing: 0.5px; }

/* Center: navigation links */
.topbar-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }

.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: var(--transition); white-space: nowrap;
  border: 1.5px solid transparent;
}
.nav-link:hover {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}
.nav-link i { font-size: 12px; }

/* Right: user info */
.topbar-user { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.topbar-avatar {
  width: 34px; height: 34px;
  background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 13px; flex-shrink: 0;
}
.topbar-name  { font-size: 11px; font-weight: 700; color: var(--white); }
.topbar-role,
.topbar-role-lbl { font-size: 9px; color: rgba(255,255,255,0.5); }

/* ===== SIDEBAR LAYOUT ===== */
.layout { display: flex; min-height: 100vh; position: relative; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--green-deep);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 30px rgba(26,74,26,0.2);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 26px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sidebar-logo .logo-badge { display: flex; align-items: center; gap: 11px; }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--white);
  box-shadow: 0 4px 14px rgba(200,104,10,0.40);
  flex-shrink: 0;
}
.logo-text strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.2;
}
.logo-text span {
  font-size: 8.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.sidebar-section { padding: 14px 14px 6px; }
.sidebar-section-label {
  font-size: 8px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.28); padding: 0 8px; margin-bottom: 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  color: rgba(255,255,255,0.60);
  cursor: pointer; transition: var(--transition); margin-bottom: 2px;
  text-decoration: none; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active { background: rgba(255,255,255,0.11); color: var(--white); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0;
  width: 3px; height: 32px;
  background: var(--orange); border-radius: 0 99px 99px 0;
}
.nav-item i { font-size: 14px; width: 18px; text-align: center; opacity: 0.75; flex-shrink: 0; }
.nav-item.active i { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--orange); color: var(--white);
  font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
}

.sidebar-footer {
  margin-top: auto; padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.user-info strong { display: block; font-size: 11px; color: var(--white); font-weight: 600; }
.user-info span { font-size: 8.5px; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-logout {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 11px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.38); font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.sidebar-logout:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }


.score-number-input input {
  width: 100%;
  height: 42px;
  font-size: 16px;
}
/* ===== MAIN CONTENT ===== */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ===== TOPBAR (sidebar-layout pages — kept in sync with shared topbar) ===== */
.topbar-breadcrumb {
  font-size: 9.5px; color: rgba(255,255,255,0.55); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.topbar-breadcrumb i { font-size: 8px; color: rgba(255,255,255,0.35); }
.topbar-icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer; transition: var(--transition); position: relative;
}
.topbar-icon-btn:hover { background: rgba(255,255,255,0.18); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); border: 1.5px solid var(--green-deep);
}
.topbar-time { font-size: 10px; color: rgba(255,255,255,0.5); text-align: right; }
.topbar-time strong { display: block; color: var(--white); font-size: 11px; font-weight: 700; }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 30px; flex: 1; }
.page-header { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-header-left h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.page-header-left p { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green-deep);
}
.stat-card.orange::after { background: var(--orange); }
.stat-card.gold::after { background: var(--gold); }
.stat-card.blue::after { background: var(--blue); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.stat-icon.green { background: var(--green-light); color: var(--green-deep); }
.stat-icon.orange { background: var(--orange-pale); color: var(--orange); }
.stat-icon.gold { background: var(--gold-pale); color: #a07a00; }
.stat-icon.blue { background: var(--blue-pale); color: var(--blue); }
.stat-body { flex: 1; min-width: 0; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.stat-change { font-size: 10px; color: var(--green-mid); font-weight: 600; margin-top: 5px; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead tr { background: var(--green-deep); }
thead th { padding: 11px 15px; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.78); }
tbody tr { border-bottom: 1px solid var(--border-light); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--green-glass); }
tbody td { padding: 12px 15px; font-size: 12px; color: var(--slate); }
.td-main { font-weight: 600; color: var(--ink); font-size: 13px; }

/* ===== TOGGLE ===== */
.toggle { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #ddd; border-radius: 99px; cursor: pointer; transition: var(--transition); }
.toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); left: 3px; top: 3px; transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle input:checked + .toggle-slider { background: var(--green-mid); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ===== ALERT ===== */
.alert {
  padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-green { background: var(--green-light); border: 1px solid var(--border); color: var(--green-deep); }
.alert-orange { background: var(--orange-pale); border: 1px solid rgba(200,104,10,0.2); color: var(--orange); }
.alert-gold { background: var(--gold-pale); border: 1px solid var(--border-gold); color: #8a6a00; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border-light); margin: 22px 0; }
.divider-label {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== RADIO & CHECKBOX ===== */
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item, .checkbox-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
  background: var(--white); font-size: 12px; font-weight: 500; color: var(--slate);
}
.radio-item:hover, .checkbox-item:hover { border-color: var(--green-mid); background: var(--green-glass); }
.radio-item.selected { border-color: var(--green-mid); background: var(--green-light); color: var(--green-deep); }
.radio-item input[type="radio"], .checkbox-item input[type="checkbox"] { accent-color: var(--green-mid); width: 15px; height: 15px; flex-shrink: 0; }
.radio-label { flex: 1; }

/* ===== SECTION HEADERS ===== */
.section-eyebrow {
  font-size: 8.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-mid); display: flex; align-items: center; gap: 10px; margin-bottom: 7px;
}
.section-eyebrow::after { content: ''; height: 1px; width: 24px; background: var(--green-mid); opacity: 0.4; }

/* ===== QUESTION CARD ===== */
.question-block {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm); position: relative;
}
.question-block-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.q-number {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-deep); color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.q-number.orange { background: var(--orange); }
.q-number.gold { background: var(--gold); }
.q-type-tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 3px 9px; border: 1px solid var(--border); border-radius: 99px;
}
.q-points { font-size: 10px; font-weight: 700; color: var(--orange); }

/* ===== EXAM SPLIT LAYOUT ===== */
.exam-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: calc(100vh - 130px); overflow: hidden; }
.exam-panel {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
}
.exam-panel-header {
  padding: 14px 20px;
  background: var(--green-deep); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.exam-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; }
.exam-panel-sub { font-size: 9.5px; opacity: 0.65; margin-top: 1px; }
.exam-panel-body { flex: 1; overflow-y: auto; padding: 18px; }

/* ===== TIMER ===== */
.timer-widget {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.timer-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: 2px;
}
.timer-display.warning { color: var(--orange); }
.timer-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-left {
  background: var(--green-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 50px;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(58,138,58,0.4) 0%, transparent 60%);
}
.login-left::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(200,104,10,0.12); border: 1px solid rgba(200,104,10,0.2);
}
.login-brand { position: relative; z-index: 1; text-align: center; max-width: 340px; }
.login-brand-icon {
  width: 72px; height: 72px; background: var(--orange);
  border-radius: var(--radius); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: 0 12px 40px rgba(200,104,10,0.4);
}
.login-brand h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 600; color: var(--white);
  line-height: 1.15; margin-bottom: 8px;
}
.login-brand p { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 400; line-height: 1.7; }
.login-motto {
  position: relative; z-index: 1;
  margin-top: 40px; padding: 16px 22px;
  border: 1px solid rgba(200,150,10,0.3); border-radius: var(--radius-sm);
  background: rgba(200,150,10,0.08); max-width: 340px; text-align: center;
}
.login-motto span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.75);
}
.login-motto small {
  display: block; margin-top: 5px;
  font-size: 8.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.login-features { position: relative; z-index: 1; margin-top: 40px; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 340px; }
.login-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.login-feature i { font-size: 18px; color: var(--orange); width: 24px; text-align: center; flex-shrink: 0; }
.login-feature-text strong { display: block; font-size: 11px; color: var(--white); font-weight: 600; }
.login-feature-text span { font-size: 10px; color: rgba(255,255,255,0.45); }

.login-right {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 50px;
  background: var(--cream);
}
.login-form-box { width: 100%; max-width: 420px; }
.login-form-box .form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--ink); margin-bottom: 5px;
}
.login-form-box .form-subtitle { font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.role-card {
  padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius); text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--white);
}
.role-card:hover { border-color: var(--green-mid); }
.role-card.active { border-color: var(--green-deep); background: var(--green-light); }
.role-card i { font-size: 22px; color: var(--muted); margin-bottom: 6px; display: block; }
.role-card.active i { color: var(--green-deep); }
.role-card strong { display: block; font-size: 11px; font-weight: 700; color: var(--slate); }
.role-card small { font-size: 9.5px; color: var(--muted-light); }
.role-card.active strong { color: var(--green-deep); }

/* ===== MISC ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); font-size: 11px; }
.text-sm { font-size: 11px; }
.fw-600 { font-weight: 600; }
.text-green { color: var(--green-deep); }
.text-orange { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .exam-layout { grid-template-columns: 1fr; height: auto; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 18px 14px; }
  .topbar { padding: 0 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .role-selector { grid-template-columns: 1fr; }
}



@media print {
  .no-print {
    display: none;
  }

  .results-table, .results-table * {
    visibility: visible;
  }

  .results-table {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
  }
}
