:root {
  color-scheme: dark;
  --bg: #07090c;
  --card: #141820;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #c4a35a;
  --danger: #e8b4b4;
  --focus: #e6d3a3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 "Segoe UI", "Liberation Sans", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.wm-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.wm-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.48) saturate(0.85);
  transform: scale(1.08);
}

.wm-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 26px 24px;
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.wm-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.wm-field { margin-bottom: 14px; }

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c1016;
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.wm-pass-row {
  display: flex;
  gap: 8px;
}

.wm-pass-row input { flex: 1; }

.wm-toggle,
.wm-submit {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.wm-toggle {
  min-width: 92px;
  color: var(--muted);
}

.wm-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  background: var(--accent);
  color: #1a1408;
  border-color: transparent;
  font-weight: 650;
}

.wm-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wm-submit:focus-visible,
.wm-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wm-status {
  min-height: 1.3em;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.wm-status.is-busy { color: var(--muted); }

@media (max-width: 420px) {
  .wm-card { padding: 22px 18px 20px; }
  .wm-pass-row { flex-direction: column; }
}
