/* gnetfi.com -- shared look for every page.
   Drawn from the GNET Piso WiFi logo itself: its royal blue, the Wi-Fi arcs, the gold peso coin.
   Light paper background (operator's choice for this site, 2026-09-06). Same type as the GNET
   admin -- Sora for headings, IBM Plex Sans for reading -- so the two products feel like one maker.
   The one loud element is the signal lamp (.lamp): the logo's arcs, lit green when a board is
   online. Everything else stays quiet. */

:root {
  --paper: #f5f8fc;
  --surface: #ffffff;
  --sunk: #eef3f9;
  --line: #dce3ee;
  --ink: #0f2547;
  --ink-2: #4d6283;
  --ink-3: #7b8ca7;
  --blue: #1e5bb8;
  --blue-deep: #17478f;
  --blue-wash: #e6eefb;
  --gold: #e9a916;
  --gold-deep: #9a6b00;
  --gold-wash: #fdf4dc;
  --green: #2e9e3e;
  --green-wash: #e5f5e7;
  --off: #b3bfd0;
  --danger: #c62828;
  --danger-wash: #fdecea;

  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;
  --gutter: 20px;
  --shadow: 0 1px 0 rgba(15, 37, 71, 0.04), 0 8px 24px -16px rgba(15, 37, 71, 0.22);
  --focus: 0 0 0 3px rgba(30, 91, 184, 0.35);

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 600; line-height: 1.15; }
h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---- top bar ---- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand b { font: 700 1.15rem/1 var(--font-head); letter-spacing: 0.01em; }
.brand span { font: 500 0.95rem/1 var(--font-head); color: var(--ink-2); }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .who .name { color: var(--ink-2); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 0.92rem/1 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-deep); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover:not(:disabled) { border-color: var(--ink-3); }
.btn-quiet:active:not(:disabled) { background: var(--sunk); }
.btn-small { min-height: 32px; padding: 0 12px; font-size: 0.85rem; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f2c4c0; }
.btn-danger:hover:not(:disabled) { background: var(--danger-wash); }

/* ---- forms ---- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.92rem; }
.input, select.input {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--font-body);
}
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.note { font-size: 0.88rem; color: var(--ink-2); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.alert-error { background: var(--danger-wash); color: var(--danger); }
.alert-ok { background: var(--green-wash); color: #1c6b28; }

/* ---- the signal lamp: the logo's Wi-Fi arcs ---- */
.lamp { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sunk); }
.lamp svg { width: 24px; height: 24px; overflow: visible; }
.lamp path, .lamp circle { stroke: var(--off); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.lamp circle { fill: var(--off); stroke: none; }
.lamp.on { background: var(--green-wash); }
.lamp.on path { stroke: var(--green); }
.lamp.on circle { fill: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .lamp.on path:nth-of-type(1) { animation: arc 2.4s ease-in-out infinite; }
  .lamp.on path:nth-of-type(2) { animation: arc 2.4s ease-in-out 0.2s infinite; }
  .lamp.on path:nth-of-type(3) { animation: arc 2.4s ease-in-out 0.4s infinite; }
}
@keyframes arc { 0%, 60%, 100% { opacity: 1; } 30% { opacity: 0.35; } }

/* ---- the coin: an available license ---- */
.coin {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffd75e, var(--gold) 60%, #c98d07);
  color: #6b4a00; font: 700 1.05rem/1 var(--font-head);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.foot { padding: 32px 0 40px; color: var(--ink-3); font-size: 0.85rem; }
