:root {
  --bg: #080C10;
  --surface-1: #131C26;
  --border: #18222C;
  --text: #E0E8F0;
  --text-muted: #4E5B6A;
  --accent: #F5A524;
  --accent-bg: #2A1F08;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.hero {
  padding: 64px 24px 56px;
  text-align: center;
  /* Explicit ellipse size (not the default farthest-corner circle) so the
     glow fully fades to transparent within the hero's own height instead
     of hitting the box's bottom edge as a visible hard line. Centered
     above the box so only its already-softening lower half shows. */
  background: radial-gradient(ellipse 640px 320px at 50% -80px, rgba(245, 165, 36, 0.18), transparent 72%);
}

.hero .pin {
  width: 40px;
  height: 40px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 12px 0 2px;
}

.hero .sub {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.grid {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}

.tile {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.tile:hover {
  border-color: rgba(245, 165, 36, 0.35);
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tile-name {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile-badge {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  border: 1px solid rgba(245, 165, 36, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
}

.tile-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Login page (used by server/loginPage.js, added in Task 4) */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  width: 280px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
}

.login-card h1 {
  font-size: 18px;
  margin: 0 0 16px;
}

.login-card label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  margin-bottom: 14px;
}

.login-card button {
  width: 100%;
  padding: 9px 10px;
  background: var(--accent);
  color: #1A0F00;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.login-error {
  color: #FF6B6B;
  font-size: 12px;
  margin: -8px 0 14px;
}