* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #fff; }
body { display: grid; place-items: center; font: 16px/1.4 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
form { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 12px; width: 100%; }
input {
  width: 100%; min-width: 0; font: inherit; color: #141754; background: #fff;
  border: 1px solid #c4c7c5; border-radius: 10px; padding: 13px 14px; outline: none;
}
input:focus { border-color: #00a0c6; box-shadow: 0 0 0 3px #e1f6fb; }
input::placeholder { color: #8a8d8b; }
form.bad input { border-color: #b3261e; }
form.bad { animation: shake .3s; }
button {
  display: block; width: 100%; min-height: 48px; padding: 13px 18px;
  border: 1px solid #141754; border-radius: 10px;
  color: #fff; background: #141754; font: 600 16px/1.4 Poppins, system-ui, sans-serif;
  cursor: pointer;
}
button:hover { background: #252a70; }
button:focus-visible { outline: 3px solid #00a0c6; outline-offset: 3px; }
#login-error { margin: 2px 0 0; color: #9e241b; font-size: 13px; line-height: 1.6; }
[hidden] { display: none !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { form.bad { animation: none; } }

.login-card { width: min(340px, calc(100vw - 48px)); padding: 28px 0; }
.login-heading { margin-bottom: 28px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand h1 { margin: 0; color: #141754; font-size: 24px; font-weight: 600; letter-spacing: .4px; line-height: 1.3; }
.login-mark { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: conic-gradient(#e6399b, #f28c28, #f6c544, #4cb85c, #00acd2, #8773b3, #e6399b); }
.login-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: white; }
.login-heading p { margin: 14px 0 0; color: #6a6f7c; font-size: 13px; line-height: 1.7; }
@media (max-width: 350px) { .login-brand h1 { font-size: 21px; } }
