/* ============================================================ *
 * mc_name_sniper / collector — login page
 * Standalone stylesheet (no main app CSS pulled in).
 * Matches the admin-panel palette: dark, dense, restrained.
 * ============================================================ */

:root {
  --bg:           #0a0a0a;
  --bg-elev:      #111114;
  --bg-elev-2:    #17171b;
  --bg-input:     #0d0d10;

  --border:       #232328;
  --border-soft:  #1d1d21;
  --border-strong:#2e2e34;

  --fg:           #fafafa;
  --fg-muted:     #a1a1aa;
  --fg-subtle:    #71717a;
  --fg-faint:     #52525b;

  --accent:       #34d399;
  --accent-hover: #2bbb86;
  --accent-fg:    #052e1a;

  --danger:       #f87171;
  --danger-bg:    rgba(248,113,113,0.06);
  --danger-bd:    rgba(248,113,113,0.32);

  --radius:       6px;
  --radius-lg:    8px;

  --t-fast: 120ms;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(52,211,153,0.25); color: var(--fg); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ── shell ─────────────────────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  /* Subtle radial glow centered on the card so the page isn't a flat slab. */
  background:
    radial-gradient(circle at 50% 38%, rgba(52,211,153,0.04), transparent 60%),
    var(--bg);
}

/* ── card ──────────────────────────────────────────────────── */
.login-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.02) inset;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #10b981);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-subtle);
}

/* ── error banner ──────────────────────────────────────────── */
.login-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 14px;
}

/* ── form ──────────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 500;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 11px;
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  transition: border-color var(--t-fast), background var(--t-fast);
  width: 100%;
}
.login-form input:hover {
  border-color: var(--border-strong);
}
.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:focus {
  /* Browser autofill keeps trying to inject yellow; force our palette. */
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
  caret-color: var(--fg);
  transition: background-color 5000s ease-in-out 0s;
}

.login-submit {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background var(--t-fast), border-color var(--t-fast), transform 60ms;
}
.login-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.login-submit:active { transform: translateY(0.5px); }
.login-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── footer ────────────────────────────────────────────────── */
.login-foot {
  margin-top: 22px;
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
