:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #141c2f;
  --line: #2d3b56;
  --line-strong: #40516f;
  --text: #edf2f7;
  --muted: #a7b1c2;
  --accent: #38bdf8;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, .08), transparent 220px),
    var(--bg);
}

button, input { font: inherit; }

button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: white;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #0d1424;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

h1, p { margin: 0; }
h1 { font-size: 21px; font-weight: 750; }
p { color: var(--muted); }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  width: 76px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, .5);
  background: linear-gradient(145deg, #0e7490, #134e4a);
  color: white;
  border-radius: 8px;
  font-weight: 850;
  font-size: 17px;
  box-shadow: 0 0 28px rgba(56, 189, 248, .16);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 35, 58, .98), rgba(20, 28, 47, .98));
  box-shadow: var(--shadow);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-panel footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.alert {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  color: #fecaca;
  background: rgba(127, 29, 29, .42);
}
