:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f8f9ff;
  background: #080c21;
}
* { box-sizing: border-box; }
body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(ellipse at 50% 10%, #1b315b, #080c21 72%);
}
main {
  max-width: 29rem;
  width: 100%;
  padding: clamp(1.4rem, 5vw, 2.25rem);
  border: 1px solid #3a508d;
  border-radius: 1.25rem;
  background: #111b3b;
}
.brand { color: #ffce4d; font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.12; margin: .45rem 0; }
p { line-height: 1.5; color: #d4dcf2; }
form { display: grid; gap: .65rem; margin-top: 1.5rem; }
label { font-weight: 600; }
input:not([type=checkbox]), button {
  min-height: 3rem;
  border-radius: .55rem;
  font: inherit;
}
input:not([type=checkbox]) {
  width: 100%;
  border: 1px solid #7388c2;
  color: inherit;
  background: #080f28;
  padding: .65rem .8rem;
  margin-bottom: .45rem;
}
.remember { display: flex; gap: .65rem; align-items: center; min-height: 2.75rem; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: #ffce4d; }
button { background: #ffce4d; color: #1b160b; border: 0; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 2px solid #ffce4d; outline-offset: 3px; }
#message { margin: 0; }
#message:empty { display: none; }
#message.error {
  padding: .7rem .85rem;
  border: 1px solid #f0a8a8;
  border-radius: .55rem;
  background: #fde8e8;
  color: #7f1d1d;
  font-weight: 650;
}
#message.info {
  padding: .7rem .85rem;
  border: 1px solid #3a508d;
  border-radius: .55rem;
  background: #16265c;
  color: #d4dcf2;
}
