:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #0759fa;
  --ink: #102140;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f3f7ff; }
[hidden] { display: none !important; }
button, input { font: inherit; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 36px 20px; background: radial-gradient(ellipse at 15% 15%,#e4eeff 0,transparent 55%),radial-gradient(ellipse at 95% 90%,#eaf2ff 0,transparent 50%),#f7faff; }
.login-card { width: 100%; max-width: 426px; padding: 40px; background: white; border: 1px solid #e0e8f5; border-radius: 22px; box-shadow: 0 18px 65px #19345b0b,0 2px 8px #19345b04; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.brand-icon { display: block; flex: 0 0 52px; width: 52px; height: 52px; color: var(--blue); }
.brand-name { font-size: 23px; font-weight: 850; letter-spacing: -.045em; line-height: 1.1; }
.brand-name span { display: block; margin-top: 6px; color: #5f7293; font-size: 11px; font-weight: 750; letter-spacing: .22em; }
h1 { margin: 0 0 26px; font-size: 26px; font-weight: 760; letter-spacing: -.035em; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: #344966; }
.field input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd7e9; border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .15s,box-shadow .15s; }
.field input:hover { border-color: #9db3d3; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #0759fa18; }
.field input[aria-invalid="true"] { border-color: #cf5b6b; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #cf5b6b18; }
.login-error { margin: 3px 0 18px; padding: 11px 13px; border: 1px solid #f0c7ce; border-radius: 9px; background: #fff3f5; color: #a2263b; font-size: 13px; line-height: 1.5; }
.submit-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; padding: 13px 18px; border: 0; border-radius: 9px; background: var(--blue); color: white; font-size: 15px; font-weight: 750; cursor: pointer; transition: background .15s; }
.submit-button:hover { background: #0048dc; }
.submit-button:focus-visible { outline: 3px solid #88b3ff; outline-offset: 3px; }
.submit-button:disabled { background: #427cf2; cursor: wait; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
form[aria-busy="true"] .button-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width:480px) {
  .login-shell { padding: 24px 16px; }
  .login-card { padding: 30px 25px; border-radius: 18px; }
  .brand { margin-bottom: 30px; gap: 12px; }
  .brand-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .brand-name { font-size: 21px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
