/* Silog at Kape sign-in gate — matches the console's design language
   (zinc dark + champagne gold accent, Inter). Static CSS; classes are
   referenced by login.js — do not rename. */

:root {
  color-scheme: dark;
  --bg-0: #0a0b0e;      /* page base */
  --bg-1: #0f1014;
  --panel: #15171d;     /* card */
  --panel-2: #101116;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #eceef2;
  --dim: #9aa1ae;
  --acc: #e8b64c;       /* champagne gold */
  --acc-dim: rgba(232, 182, 76, 0.14);
  --danger: #e56b6b;
  --ok: #7dd3a8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(900px 480px at 50% -180px, rgba(232, 182, 76, 0.09), transparent 70%),
    var(--bg-0);
  color: var(--fg);
  font: 15px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 16px;
}
.hidden { display: none !important; }

/* Brand */
.brand { text-align: center; margin-bottom: 22px; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--acc); color: #221a04;
  flex: none;
}
.brand-logo svg { width: 19px; height: 19px; display: block; }
.brand-sub {
  display: block; color: var(--dim); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; margin-top: 6px;
}

/* Card */
.auth-wrap { width: 100%; display: flex; justify-content: center; }
.auth {
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 26px 22px; width: min(392px, 94vw);
}
.auth-title { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 7px; }
.auth-sub { color: var(--dim); font-size: 13.5px; margin-bottom: 18px; }

.auth input {
  width: 100%; padding: 11px 13px; font-size: 16px; color: var(--fg);
  font-family: inherit;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 10px;
  outline: none; margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth input::placeholder { color: #6b7280; }
.auth input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }

/* Buttons */
.btn {
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--fg);
  border-radius: 10px; padding: 9px 16px; font-size: 14.5px; cursor: pointer;
  font-family: inherit; transition: border-color 0.15s ease, filter 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--acc); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.wide { width: 100%; padding: 12px 14px; font-size: 15px; font-weight: 650; }
.btn.wide:not(.ghost) { background: var(--acc); color: #221a04; border: none; }
.btn.wide:not(.ghost):hover { filter: brightness(1.07); }
.btn.wide:not(.ghost):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acc-dim); }
.btn.wide.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); font-weight: 600; }
.btn.wide.ghost:hover { border-color: var(--acc); filter: none; }
.btn.link-back {
  background: transparent; border: none; color: var(--dim);
  font-size: 13px; font-family: inherit; padding: 6px 0 0; width: 100%; cursor: pointer;
}
.btn.link-back:hover { color: var(--fg); }

/* Two-option chooser */
.auth-options { display: flex; flex-direction: column; gap: 2px; }
.auth-opt { display: flex; flex-direction: column; gap: 7px; }
.auth-or {
  display: flex; align-items: center; gap: 10px; color: var(--dim);
  font-size: 11.5px; margin: 4px 0; text-transform: uppercase; letter-spacing: 0.14em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.opt-hint { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.opt-hint:empty { display: none; }
.opt-hint.warn { color: var(--acc); }
#view-setup .btn.link-back { margin-top: 6px; }

/* Toasts */
#toast-root {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
  width: min(420px, 92vw);
}
.toast {
  background: #1a1e26; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 15px; font-size: 13.5px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.toast-error { border-color: var(--danger); color: #ffd7d7; }
.toast-success { border-color: var(--ok); color: #cfe9da; }
