:root {
  color-scheme: dark;
  --bg: #06101a;
  --panel: #0b1723;
  --surface: #101f2e;
  --border: #23394b;
  --text: #edf4fa;
  --muted: #8294a7;
  --accent: #f5a623;
  --danger: #f07582;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

.auth-page {
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(23, 47, 66, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 47, 66, .18) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(245, 166, 35, .08), transparent 34rem),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-panel {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  background: rgba(11, 23, 35, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  padding: clamp(28px, 6vw, 46px);
}

.auth-brand { display: flex; align-items: center; gap: 16px; }

.auth-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #07101c;
  background: var(--accent);
  font-size: 32px;
  font-weight: 900;
}

.auth-brand p {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.auth-brand h1 { margin: 0; font-size: clamp(23px, 5vw, 29px); }
.auth-intro { margin: 30px 0 24px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 8px; font-size: 13px; font-weight: 750; }

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: #08131e;
  padding: 0 14px;
  outline: none;
  font: inherit;
}

.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 166, 35, .12); }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }

.password-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  color: var(--accent);
  background: transparent;
  padding: 8px;
  cursor: pointer;
  font-weight: 750;
}

.auth-error { min-height: 22px; margin: 5px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }

.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  color: #07101c;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:disabled { cursor: wait; opacity: .65; }

.logout-button {
  border: 1px solid #31475a;
  border-radius: 4px;
  color: #aebdca;
  background: #0a1520;
  padding: 8px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.logout-button:hover { color: #fff; border-color: #52697c; }
.logout-button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 560px) {
  .auth-shell { padding: 0; }
  .auth-panel { min-height: 100vh; width: 100%; border: 0; display: flex; flex-direction: column; justify-content: center; }
}
