: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;
}
.form-error { color: #ff6b6b; min-height: 1.2em; margin: 0.5rem 0; }
.form-notice { color: #34d399; margin: 0.5rem 0; }
.auth-links { margin-top: 1rem; font-size: 0.9rem; opacity: 0.85; }
.google-button { margin-top: 0.75rem; width: 100%; background: transparent; border: 1px solid currentColor; }
/* Admin page: same card, wider, table collapses into stacked rows on phones */
.login-card--wide { width: min(960px, calc(100% - 32px)); margin: 32px 0; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.admin-bar strong { color: var(--text); }
.login-card .button-secondary { width: auto; background: transparent; color: var(--text); border: 1px solid var(--border); padding: 7px 14px; }
.login-card .button-secondary:hover { border-color: rgba(245, 165, 36, 0.35); }
.admin-heading { font-size: 15px; margin: 24px 0 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 8px 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table small { color: var(--text-muted); font-size: 12px; }
.admin-name { font-weight: 600; }
.status-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; border-radius: 4px; padding: 2px 7px; border: 1px solid; }
.status-pending { color: var(--accent); border-color: rgba(245, 165, 36, 0.4); background: var(--accent-bg); }
.status-active { color: #34d399; border-color: rgba(52, 211, 153, 0.35); }
.status-disabled { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.35); }
.admin-actions { white-space: nowrap; }
.admin-table form { display: flex; gap: 6px; margin: 0; }
.admin-table form + form { margin-top: 6px; }
.login-card button, .login-card select { font-family: var(--font-sans); }
.admin-table select { flex: 1; min-width: 96px; height: 32px; padding: 0 28px 0 8px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234E5B6A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-color: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.login-card .admin-table button { width: 72px; height: 32px; padding: 0 10px; font-size: 13px; }
@media (max-width: 640px) {
  .login-card--wide { padding: 18px; margin: 16px 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .admin-table tbody tr:last-child { border-bottom: none; }
  .admin-table td { border: none; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  .admin-table td[data-label]::before { content: attr(data-label); color: var(--text-muted); font-size: 12px; }
  .admin-table td[data-label="Konto"] { display: block; padding-bottom: 6px; }
  .admin-table td[data-label="Konto"]::before { content: none; }
  .admin-actions { display: block !important; padding-top: 8px !important; }
}
