:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-bg: #101820;
  --panel-bg: rgba(12, 19, 24, 0.82);
  --control-bg: rgba(7, 12, 16, 0.72);
  --border-panel: rgba(204, 221, 218, 0.14);
  --border-strong: rgba(120, 226, 196, 0.78);
  --text-main: #eef5f4;
  --text-heading: #f4fbfa;
  --text-muted: #91a7a6;
  --text-soft: #cbd8d6;
  --accent: #78e2c4;
  --accent-contrast: #0d191b;
  background: var(--page-bg);
  color: var(--text-main);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.2), rgba(16, 24, 32, 0.78)),
    radial-gradient(circle at 28% 16%, rgba(120, 226, 196, 0.1), transparent 28%),
    var(--page-bg);
}

.login-shell { width: min(380px, calc(100% - 32px)); margin: 32px auto; }
.login-card {
  padding: 32px;
  background: var(--panel-bg);
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

form { display: flex; flex-direction: column; }
label { color: var(--text-soft); font-size: 14px; font-weight: 600; margin-bottom: 9px; }
input:not([type=hidden]) {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-panel);
  border-radius: 8px;
  background: var(--control-bg);
  font: inherit;
  font-size: 16px;
  color: var(--text-main);
  caret-color: var(--accent);
  margin-bottom: 24px;
  width: 100%;
}
input::placeholder { color: var(--text-muted); opacity: 1; }
input:focus { outline: 3px solid rgba(120, 226, 196, 0.16); border-color: var(--border-strong); }
input:autofill {
  box-shadow: 0 0 0 1000px #0b1319 inset;
  -webkit-text-fill-color: var(--text-main);
  caret-color: var(--accent);
}
input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #0b1319 inset;
  -webkit-text-fill-color: var(--text-main);
  caret-color: var(--accent);
}
button {
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
}
button:hover { background: #91e9d0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.error {
  border: 1px solid rgba(255, 117, 108, 0.82);
  background: rgba(255, 117, 108, 0.14);
  color: var(--text-heading);
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.locked-card { width: min(440px, calc(100% - 32px)); margin: 32px auto; }
.locked-card h1 { color: var(--text-heading); font-size: 24px; margin-top: 0; }
.sub { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
a { color: var(--accent); }
@media (max-width: 420px) { .login-card { padding: 24px; } }
