*{
    box-sizing:border-box
}
body{
    margin:0;
    min-height:100vh;
    display:grid;
    place-items:center;
    font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;
    background:#0b1220;
    color:#e8eefc
}
.card{
    width:min(420px,92vw);
    background:#0f1a31;
    border:1px solid #223055;
    border-radius:14px;
    padding:20px
    }
h1{
    margin:0 0 8px 0;
    font-size:22px
}
label{
    display:block;
    margin:10px 0 6px;
    color:#a9b6d6;
    font-size:13px
}
input{
    width:100%;
    padding:10px;
    border-radius:10px;
    border:1px solid #223055;
    background:#0b1220;
    color:#e8eefc
}
button{
    margin-top:14px;
    width:100%;
    padding:10px;
    border:0;
    border-radius:10px;
    background:#7aa2ff;
    color:#0b1220;
    font-weight:700;
    cursor:pointer
}
button:hover{
    filter:brightness(1.05);
}
.muted{
    color:#a9b6d6;
    margin-top:0;
}
.alert{
    background:rgba(255,92,92,.15);
    border:1px solid rgba(255,92,92,.35);
    padding:10px;border-radius:10px;
    margin:12px 0;
}
a{
    color:#7aa2ff;
}

.site-header{
  width:100%;
  background:#0f1a31;
  border-bottom:1px solid #223055;
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.site-header .brand{
  font-weight:700;
  text-decoration:none;
  color:#e8eefc;
  font-size:18px;
}

.site-header a{
  margin-left:14px;
  text-decoration:none;
  color:#7aa2ff;
  font-size:14px;
}

.site-header a.logout{
  color:#ff9b9b;
}

.site-header .welcome{
  margin-right:12px;
  font-size:14px;
  color:#a9b6d6;
}



:root {
  --bg: #0b1220;
  --panel: #020617;
  --panel2: #0f1b33;
  --border: #23355a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #2563eb;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Top Navigation ---------- */
header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
}

.brand {
  font-weight: 800;
  letter-spacing: .3px;
}

.nav a,
.dropdown button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav a:hover,
.dropdown button:hover {
  background: rgba(148,163,184,.12);
}

.spacer { flex: 1; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 220px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.dropdown-menu a:hover {
  background: rgba(148,163,184,.12);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Header layout */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: #e5e7eb;
  padding: 10px 20px;
}

.site-header a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-header a:hover {
  text-decoration: underline;
}

/* Brand */
.brand {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Dropdown */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-button {
  background: none;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px 10px;
}

.user-button:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #1e293b;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: #334155;
}

/* Divider */
.dropdown .divider {
  height: 1px;
  background: #334155;
  margin: 6px 0;
}

/* Show dropdown */
.user-menu:hover .dropdown {
  display: block;
}
