:root {
  color-scheme: light;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15294b;
  background: #f3f6fa;
}

* { box-sizing: border-box; }

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0;
}

.login-topbar {
  display: flex;
  align-items: center;
  min-height: 65px;
  padding: 6px clamp(14px, 2vw, 24px);
  background: #fff;
  border-bottom: 1px solid #dfe6f2;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #132d5a;
  text-decoration: none;
}

.login-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(150px, 45vw, 212px);
  max-height: 48px;
}

.login-brand span {
  padding-left: 12px;
  border-left: 1px solid #d5deee;
  font-size: 15px;
  font-weight: 800;
}

.login-brand small {
  display: block;
  margin-top: 2px;
  color: #587196;
  font-size: 10px;
  letter-spacing: .08em;
}

main { padding: 36px 16px 24px; }

.login-panel {
  width: min(100%, 465px);
  margin: 0 auto;
  padding: 17px 19px;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  box-shadow: 0 3px 14px #15294b08;
}

.login-eyebrow {
  color: #305cab;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 14px;
  font-size: clamp(22px, 5vw, 25px);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 800;
}

form { display: grid; gap: 8px; }

label {
  display: grid;
  gap: 4px;
  color: #3e567a;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #c5d2e5;
  border-radius: 7px;
  color: #15294b;
  background: #fff;
  line-height: 1.2;
  font-family: inherit;
  font-size: 16px;
}

button {
  justify-self: start;
  min-height: 29px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1b47ab;
  font: 750 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

button:hover { background: #143887; }

:where(input, button, a):focus-visible {
  outline: 2px solid #5184ed;
  outline-offset: 2px;
}

.login-error {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid #f0c4c0;
  border-radius: 6px;
  background: #fff4f3;
  color: #8c2525;
  font-size: 12px;
}

footer {
  padding: 12px;
  border-top: 1px solid #dfe6f2;
  color: #596e8c;
  text-align: center;
  font-size: 11px;
}

footer span { padding-inline: 5px; }

@media (max-width: 560px) {
  main { padding-top: 24px; }
  input, button { min-height: 42px; }
}
