/* =============================================================================
   NIS2 Compliance Platform — application shell & component styles (TASK-007).
   A small utility + component layer (no framework). WCAG 2.1 AA: visible focus,
   sufficient contrast, dark mode, meaning never by colour alone, responsive.
   ========================================================================== */

/* ---- Design tokens (light) ------------------------------------------------ */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eceff4;
  --fg: #18212f;
  --muted: #51607a;
  --border: #d4dae3;
  --accent: #0b54e6;
  --accent-fg: #ffffff;
  --focus: #0a3fb0;
  --danger: #b3261e;
  --danger-bg: #fde8e6;
  --warning: #8a5a00;
  --warning-bg: #fcefcf;
  --success: #1c6b3c;
  --success-bg: #dcf3e4;
  --info: #14467a;
  --info-bg: #dbe9fb;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  --radius: 8px;
  --topbar-h: 3.5rem;
}

/* ---- Dark theme (system preference, unless explicitly overridden to light) - */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1422;
    --surface: #161d2c;
    --surface-2: #1f2738;
    --fg: #e7ebf3;
    --muted: #a3adbf;
    --border: #2b3445;
    --accent: #5f9bff;
    --accent-fg: #06122b;
    --focus: #9cc1ff;
    --danger: #ff8a80;
    --danger-bg: #3a1714;
    --warning: #ffce7a;
    --warning-bg: #3a2c0f;
    --success: #86e0a6;
    --success-bg: #123222;
    --info: #9cc2ff;
    --info-bg: #12233f;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Explicit theme toggle (overrides the system preference) -------------- */
[data-theme="dark"] {
  --bg: #0e1422;
  --surface: #161d2c;
  --surface-2: #1f2738;
  --fg: #e7ebf3;
  --muted: #a3adbf;
  --border: #2b3445;
  --accent: #5f9bff;
  --accent-fg: #06122b;
  --focus: #9cc1ff;
  --danger: #ff8a80;
  --danger-bg: #3a1714;
  --warning: #ffce7a;
  --warning-bg: #3a2c0f;
  --success: #86e0a6;
  --success-bg: #123222;
  --info: #9cc2ff;
  --info-bg: #12233f;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }

/* Visible focus for keyboard users (WCAG 2.4.7). */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: top 0.15s;
}
.skip-link:focus { top: 0.5rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---- Top bar -------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; color: var(--fg); }
.brand-mark { background: var(--accent); color: var(--accent-fg); border-radius: 6px; padding: 0.1rem 0.4rem; font-size: 0.8rem; }
.brand-name { white-space: nowrap; }
.global-search { display: flex; flex: 1; max-width: 32rem; }
.global-search input { flex: 1; min-width: 6rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-toggle { display: none; }

.bell { position: relative; text-decoration: none; font-size: 1.15rem; padding: 0.25rem; color: var(--fg); }
.bell .badge {
  position: absolute; top: -0.35rem; right: -0.4rem;
  background: var(--danger); color: #fff;
  border-radius: 999px; font-size: 0.7rem; padding: 0 0.35rem; min-width: 1.1rem; text-align: center;
}
.theme-toggle { font-size: 1.1rem; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; color: var(--fg); padding: 0.25rem 0.45rem; }

/* Disclosure menus (native <details>). */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); }
.menu > summary::-webkit-details-marker { display: none; }
.menu .user-email { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { background: var(--accent); color: var(--accent-fg); border-radius: 999px; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.menu-list { position: absolute; right: 0; margin: 0.35rem 0 0; padding: 0.35rem; list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 12rem; z-index: 30; }
.menu-list li { margin: 0; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 0.45rem 0.6rem; background: none; border: 0; color: var(--fg); text-decoration: none; cursor: pointer; border-radius: 6px; font: inherit; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-heading { padding: 0.45rem 0.6rem; color: var(--muted); font-size: 0.8rem; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }

/* ---- Shell layout --------------------------------------------------------- */
.app-shell { display: grid; grid-template-columns: 15rem 1fr; flex: 1; min-height: 0; }
.sidenav { background: var(--surface); border-right: 1px solid var(--border); padding: 0.75rem; overflow-y: auto; }
.content { padding: 1.25rem 1.5rem; max-width: 75rem; }
.content:focus { outline: none; }

.context-switchers { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.switcher { display: flex; flex-direction: column; gap: 0.2rem; }
.switcher label, .switcher-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.switcher-static { margin: 0; display: flex; flex-direction: column; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.nav-list a:hover { background: var(--surface-2); }
.nav-list a.active { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.nav-icon { width: 1.2rem; text-align: center; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.appfoot { border-top: 1px solid var(--border); padding: 0.75rem 1.5rem; background: var(--surface); font-size: 0.85rem; }
.disclaimer { border-left: 3px solid var(--accent); background: var(--info-bg); color: var(--fg); padding: 0.5rem 0.75rem; border-radius: 4px; }

/* ---- Headings & page head ------------------------------------------------- */
h1 { font-size: 1.5rem; margin: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---- Buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer; font: inherit; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-small { padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.btn.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ---- Forms ---------------------------------------------------------------- */
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem 0.55rem; }
label { font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.field-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.field-check { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.stack { display: flex; flex-direction: column; gap: 0.25rem; }
.filters { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.quick-create { margin-left: auto; }
.quick-create > summary { cursor: pointer; }
.quick-create form { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* ---- Badges --------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge-citation { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge-type { background: var(--surface-2); }
.prio-urgent { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.prio-high { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.prio-medium { background: var(--surface-2); }
.prio-low { background: var(--surface-2); color: var(--muted); }
.status-todo { background: var(--surface-2); }
.status-in_progress { background: var(--info-bg); color: var(--info); border-color: transparent; }
.status-blocked { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.status-done { background: var(--success-bg); color: var(--success); border-color: transparent; }

/* ---- Stat cards / dashboard ---------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-warning { border-left: 4px solid var(--warning); }
.stat-accent { border-left: 4px solid var(--accent); }
.quick-links { list-style: none; padding: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.quick-links a { padding: 0.4rem 0.7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); }

/* ---- Kanban board --------------------------------------------------------- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; align-items: start; }
.kanban-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; min-height: 6rem; }
.kanban-col.drop-target { outline: 2px dashed var(--accent); outline-offset: -4px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; margin: 0.25rem 0.25rem 0.5rem; }
.kanban-col-head .count { background: var(--surface-2); border-radius: 999px; padding: 0 0.5rem; font-size: 0.8rem; }
.kanban-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; min-height: 2rem; }
.kanban-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; box-shadow: var(--shadow); cursor: grab; }
.kanban-card.dragging { opacity: 0.5; }
.kanban-card.is-overdue { border-left: 4px solid var(--danger); }
.card-title { font-size: 0.95rem; margin: 0 0 0.4rem; }
.card-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.4rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.4rem; font-size: 0.8rem; color: var(--muted); }
.card-meta dt { font-weight: 600; }
.card-meta dd { margin: 0; }
.card-move { display: flex; gap: 0.35rem; align-items: center; }
.card-move .move-select { flex: 1; }
.kanban-empty { color: var(--muted); font-size: 0.85rem; padding: 0.5rem; margin: 0; }

/* ---- Data tables ---------------------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; }
.data-table th, .data-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.data-table thead th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tr.is-overdue { background: var(--danger-bg); }
.bulk-bar { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---- Search --------------------------------------------------------------- */
.search-page-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-bottom: 1rem; flex-wrap: wrap; }
.search-results { list-style: none; padding: 0; }
.search-hit { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.search-hit-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.search-hit-title { font-weight: 600; color: var(--fg); }
.search-hit-snippet { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Calendar ------------------------------------------------------------- */
.cal-toolbar { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-views, .cal-nav { display: flex; gap: 0.35rem; }
.cal-month, .cal-week { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-month caption, .cal-week caption { text-align: left; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.cal-month th, .cal-week th { padding: 0.4rem; border: 1px solid var(--border); background: var(--surface); font-size: 0.8rem; color: var(--muted); }
.cal-cell { border: 1px solid var(--border); vertical-align: top; height: 6rem; padding: 0.25rem; }
.cal-out { background: var(--surface); color: var(--muted); }
.cal-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-date { font-weight: 600; font-size: 0.8rem; }
.cal-entries { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.cal-entries a { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; text-decoration: none; color: var(--fg); padding: 0.1rem 0.25rem; border-radius: 4px; background: var(--surface-2); }
.cal-entry-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-week td { border: 1px solid var(--border); vertical-align: top; height: 14rem; padding: 0.3rem; }
.agenda-day { margin-bottom: 1rem; }
.agenda-day h2 { font-size: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
.agenda-entries { list-style: none; padding: 0; }
.agenda-entries li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.cal-legend { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 0; }
.cal-legend li { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }

/* Urgency indicator: shape + position, with an sr-only text label. */
.urgency { display: inline-flex; align-items: center; }
.urgency-dot { width: 0.7rem; height: 0.7rem; border-radius: 999px; display: inline-block; background: var(--muted); border: 1px solid var(--border); }
.cal-overdue .urgency-dot { background: var(--danger); }
.cal-due-soon .urgency-dot { background: var(--warning); }
.cal-upcoming .urgency-dot { background: var(--accent); }
.cal-done .urgency-dot { background: var(--success); }

.cal-subscribe { margin-top: 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.subscribe-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.subscribe-row input { flex: 1; min-width: 14rem; }

/* ---- Empty state ---------------------------------------------------------- */
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-icon { font-size: 1.5rem; display: block; }
.prose-list { line-height: 1.7; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 60rem) {
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 48rem) {
  .nav-toggle { display: inline-flex; align-items: center; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); cursor: pointer; padding: 0.3rem 0.5rem; font-size: 1.1rem; }
  .brand-name { display: none; }
  .user-email { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: 16rem; transform: translateX(-100%); transition: transform 0.18s ease; z-index: 25; }
  .sidenav.open { transform: translateX(0); }
  .kanban { grid-template-columns: 1fr; }
  .content { padding: 1rem; }
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------------------
 * TASK-035 — dashboards, gauges, charts, heat-map
 * ------------------------------------------------------------------------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  align-items: start;
}
.dash-grid .card { margin: 0; }

/* Chart canvases live in a fixed-height wrapper so Chart.js can size to it. */
.chart-wrap { position: relative; height: 16rem; width: 100%; }
.chart-wrap.chart-sm { height: 12rem; }
.chart-wrap canvas { max-width: 100%; }

/* Gauge: doughnut canvas with the numeric value overlaid (the value is real text). */
.gauge { position: relative; height: 12rem; }
.gauge-value {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.gauge-num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.gauge-unit { font-size: 1rem; color: var(--muted); }
.gauge-band-ok .gauge-num { color: var(--success); }
.gauge-band-warn .gauge-num { color: var(--warning); }
.gauge-band-danger .gauge-num { color: var(--danger); }

/* Art 21(2) coverage heat-map — server-rendered accessible grid. */
.heatgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.4rem;
}
.heatcell {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 0.4rem; text-align: center; text-decoration: none; color: var(--fg);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.heatcell .hc-point { font-weight: 700; text-transform: uppercase; }
.heatcell .hc-pct { font-size: 0.85rem; }
.heatcell.ok { background: var(--success-bg); }
.heatcell.warn { background: var(--warning-bg); }
.heatcell.danger { background: var(--danger-bg); }

/* Countdown widgets for active deadlines. */
.countdowns { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.countdowns li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem;
}
.countdowns li.is-breached { border-left: 4px solid var(--danger); }

.exposure-figure { font-size: 1.8rem; font-weight: 700; }
.exposure-figure.is-na { font-size: 1.1rem; color: var(--muted); font-weight: 600; }

/* ---- Login Page Premium Styles -------------------------------------------- */
body.login-page {
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
}

.login-container {
  width: 100%;
  max-width: 28rem;
  z-index: 10;
}

.login-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4), 0 15px 15px -5px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo {
  display: inline-block;
  background: linear-gradient(135deg, #0052cc 0%, #ff5500 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  border-bottom: none;
}

.login-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.alert-box {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-box.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.input-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.input-wrapper input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}

.btn-login:hover {
  background: linear-gradient(135deg, #ff5500 0%, #d44700 100%);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: #64748b;
}

.login-footer p {
  margin: 0.25rem 0;
}

.credentials-hint {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.credentials-hint strong {
  color: #ff9d00;
  font-family: monospace;
}
