html {
  color-scheme: dark;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #2b769e #090f18;
  background: #070b12;
}

* { box-sizing: border-box; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 20px 16px;
  color: #f1f6fc;
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.panel-login {
  width: min(100%, 380px);
  padding: 20px;
  border: 1px solid rgba(173, 190, 210, 0.13);
  border-radius: 12px;
  background: #111821;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

h1 {
  margin: 0 0 14px;
  color: #e7edf4;
  font: 720 18px/1.4 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.025em;
}

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

label {
  display: block;
  margin-bottom: 4px;
  color: #a2b0c0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

input:not([type='hidden']) {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(151, 181, 216, 0.24);
  border-radius: 12px;
  background: rgba(7, 13, 22, 0.7);
  color: inherit;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

input:not([type='hidden']):hover { border-color: rgba(151, 181, 216, 0.38); }
input:not([type='hidden']):focus {
  outline: none;
  border-color: rgba(87, 184, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(87, 184, 255, 0.14);
}

input[type='password']::-ms-reveal { display: none; }

button {
  min-height: 41px;
  padding: 9px 15px;
  border: 1px solid #4da5e4;
  border-radius: 9px;
  background: #4da5e4;
  color: #06111c;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
  cursor: pointer;
}

button:hover { border-color: #65b5eb; background: #65b5eb; }
button:focus-visible { outline: 2px solid #57b8ff; outline-offset: 3px; }

.flash {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 184, 255, 0.28);
  border-left: 3px solid #57b8ff;
  border-radius: 12px;
  background: rgba(87, 184, 255, 0.08);
  color: #dcefff;
  font-size: 13px;
}

@media (max-width: 620px) {
  .panel-login { padding: 16px; border-radius: 16px; }
}
