:root {
  --bg: #0e1525;
  --panel: #121b2f;
  --primary: #1e90ff;
  --success: #2ecc71;
  --danger: #e74c3c;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--panel);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
}

#logoutBtn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--primary);
  padding: 6px 14px;
  cursor: pointer;
}

.container {
  padding: 24px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--panel);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.card span {
  color: var(--muted);
  font-size: 13px;
}

.card strong {
  display: block;
  font-size: 32px;
  margin-top: 6px;
}

.card.up strong { color: var(--success); }
.card.down strong { color: var(--danger); }

.hosts h2 {
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: #18223c;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #1f2937;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.status-up {
  color: var(--success);
  font-weight: 600;
}

.status-down {
  color: var(--danger);
  font-weight: 600;
}

:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --line:#1f2a44;
  --text:#e8edf7;
  --muted:#a9b4c7;
  --blue:#1e90ff;
  --orange:#f2a64a;
  --orange2:#f7b15c;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:radial-gradient(1200px 600px at 20% 0%, #0f2140 0%, var(--bg) 55%) fixed;
  color:var(--text);
}

/* TOP NAV */
.topbar{
  background:linear-gradient(180deg, #0f1a2e 0%, #0c1526 100%);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{
  max-width:1100px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand .title{
  font-weight:800;
  letter-spacing:.5px;
}
.brand .sub{
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}

.nav{
  display:flex;
  gap:22px;
  align-items:center;
  flex-wrap:wrap;
}
.nav a{
  color:var(--text);
  opacity:.9;
  text-decoration:none;
  font-weight:600;
}
.nav a:hover{opacity:1; text-decoration:underline}

.account-btn{
  background:linear-gradient(180deg, var(--orange2) 0%, var(--orange) 100%);
  color:#0b1220;
  border:0;
  padding:10px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(242,166,74,.25);
}
.account-btn:hover{filter:brightness(1.02)}

/* LOGIN LAYOUT */
.main{
  max-width:1100px;
  margin:0 auto;
  padding:34px 18px 60px;
}

.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:26px;
  align-items:start;
}
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
}

.h1{
  font-size:54px;
  margin:18px 0 10px;
  letter-spacing:-1px;
}
.p{
  color:var(--muted);
  font-size:18px;
  margin:0 0 18px;
}

.login-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  backdrop-filter: blur(6px);
}

.login-card h2{
  margin:0 0 6px;
  font-size:18px;
}
.login-card .hint{
  margin:0 0 16px;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.btn-primary{
  width:100%;
  border:0;
  background:linear-gradient(180deg, var(--orange2) 0%, var(--orange) 100%);
  color:#0b1220;
  padding:12px 14px;
  border-radius:10px;
  font-weight:900;
  cursor:pointer;
}
.btn-primary:hover{filter:brightness(1.02)}

.alert{
  margin-top:14px;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid rgba(231,76,60,.35);
  background:rgba(231,76,60,.12);
  color:#ffd6d2;
  display:none;
}
.alert.show{display:block}
