:root {
  color-scheme: light;
  --navy: #071521;
  --navy-soft: #102433;
  --blue: #075bbf;
  --ink: #0c1824;
  --muted: #60717d;
  --line: #d8e0e5;
  --paper: #f4f6f7;
  --white: #fff;
  --good: #238463;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--navy); }
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 12%, rgba(26, 91, 140, .22), transparent 32%),
    linear-gradient(135deg, var(--navy) 0%, #091925 58%, #0d2230 100%);
}

.login-card {
  width: min(460px, 100%);
  padding: 34px 38px 30px;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.login-brand { display: flex; align-items: center; justify-content: space-between; }
.login-brand a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.login-brand strong { font-size: 22px; letter-spacing: -.05em; }
.login-brand span { max-width: 96px; color: #4d606c; font-size: 11px; line-height: 1.25; text-transform: uppercase; }
.login-brand > i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(35,132,99,.12); }

.login-copy { margin-top: 52px; }
.login-copy p { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.login-copy h1 { margin: 0; font-size: clamp(34px, 8vw, 47px); font-weight: 620; letter-spacing: -.055em; line-height: .98; }
.login-copy > span { margin-top: 16px; display: block; max-width: 350px; color: #4d606c; font-size: 14px; line-height: 1.55; }

form { margin-top: 32px; display: grid; gap: 17px; }
label { display: grid; gap: 8px; }
label span { color: #314651; font-size: 11px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab8c1;
  border-radius: 0;
  outline: none;
  font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,91,191,.14); }
.login-error { margin: -3px 0 0; color: #9b351f; font-size: 12px; line-height: 1.4; }
.login-error[data-state="hidden"] { display: none; }
button {
  height: 50px;
  margin-top: 3px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .035em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
button:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
button:focus-visible { outline: 3px solid rgba(7,91,191,.25); outline-offset: 3px; }

footer { margin-top: 30px; padding-top: 21px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
footer span { display: flex; align-items: center; gap: 7px; color: #304954; font-size: 11px; font-weight: 680; }
footer span i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
footer small { max-width: 190px; color: #526571; font-size: 11px; line-height: 1.45; text-align: right; }

@media (max-width: 520px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 28px 24px 25px; }
  .login-copy { margin-top: 42px; }
  footer { display: grid; }
  footer small { max-width: none; text-align: left; }
}
