:root {
  --bg: #0d0f12;
  --panel: #15181d;
  --panel-2: #1a1e24;
  --border: #2a3038;
  --text: #e8eaed;
  --muted: #8b929c;
  --brand: #f0a53c;
  --danger: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Same trap as in style.css: an element with its own display value ignores
   the hidden attribute, which here exposed the admin-only user filter. */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.lang-switch {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  width: auto;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--text); background: var(--panel-2); filter: none; }
.lang-switch button.active { background: var(--brand); color: #1a1206; }

.version-stamp {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.66rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.mark { font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
h1 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em; }
p.sub { color: var(--muted); font-size: 0.8rem; margin-top: 6px; margin-bottom: 20px; }

label {
  display: block;
  text-align: left;
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0 0 4px 2px;
}

input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  margin-bottom: 12px;
}
input:focus { border-color: var(--brand); }

.password-wrap { position: relative; margin-bottom: 12px; }
.password-wrap input { margin-bottom: 0; padding-right: 46px; }
.password-toggle {
  position: absolute; top: 50%; right: 7px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted);
}
.password-toggle:hover { background: rgba(255,255,255,0.06); color: var(--text); filter: none; }
.password-toggle:focus-visible { outline: 1px solid var(--brand); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-off { display: none; }
.password-toggle.shown .eye-on { display: none; }
.password-toggle.shown .eye-off { display: block; }

button {
  width: 100%;
  background: var(--brand);
  border: none;
  border-radius: 8px;
  color: #1a1206;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  margin-top: 4px;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(0.99); }

.error {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 14px;
  line-height: 1.35;
}
.error.show { display: block; }

.alt {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.alt a { color: var(--brand); text-decoration: none; }
.alt a:hover { text-decoration: underline; }
