:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #24272b;
  background: #f5f5f3;
  font-synthesis: none;
  --blue: #236192;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: grid; place-items: center; padding: 48px 24px 52px; }
.login { width: 100%; max-width: 464px; }
.brand { text-align: center; margin-bottom: 28px; }
.brand-logo { display: block; width: auto; height: 120px; max-width: 100%; margin: 0 auto 20px; object-fit: contain; }
.brand-name { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -.65px; line-height: 1.25; text-wrap: balance; }
.card { background: #fff; border: 1px solid #e2e3df; border-radius: 16px; padding: 32px; box-shadow: 0 6px 24px #24272b05; }
h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.6px; line-height: 1.25; font-weight: 650; }
.intro { margin: 0 0 28px; color: #62666b; font-size: 16px; line-height: 1.5; }
form > label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
input[type="email"], #password { width: 100%; height: 50px; border: 1px solid #b8bdc2; border-radius: 7px; padding: 0 14px; font: inherit; color: #24272b; background: #fff; margin-bottom: 22px; }
input::placeholder { color: #73777c; }
input:focus-visible, button:focus-visible { outline: 3px solid #23619250; outline-offset: 3px; border-color: var(--blue); }
.remember { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 22px; margin-bottom: 24px; cursor: pointer; }
.remember input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--blue); }
button { width: 100%; min-height: 50px; border: 0; border-radius: 7px; background: var(--blue); color: white; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #194b73; }
a { color: #236192; text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; cursor: pointer; }
.password-link { margin-top: 14px; text-align: center; font-size: 14px; }
.registration { border-top: 1px solid #e8e9e6; margin-top: 26px; padding-top: 23px; text-align: center; font-size: 15px; }
.registration p { margin: 0 0 6px; color: #62666b; }
.registration a { font-weight: 600; }
footer { padding: 24px 28px 28px; border-top: 1px solid #dedfdb; background: #eeefec; }
footer nav { max-width: 1060px; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; }
footer a { color: #555b60; font-size: 15px; text-decoration: none; padding: 5px 0; }
footer .legal { margin-top: 10px; }
@media (max-width: 520px) {
  main { padding: 28px 16px 32px; }
  .brand { margin-bottom: 22px; }
  .brand-logo { height: 100px; margin-bottom: 18px; }
  .brand-name { font-size: 24px; }
  .card { padding: 26px 22px; border-radius: 12px; }
  h1 { font-size: 24px; }
  .intro { font-size: 15px; }
  footer { padding: 20px 20px 24px; }
  footer nav { column-gap: 18px; row-gap: 4px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }

a:hover { color: #194b73; text-decoration: underline; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #23619250; outline-offset: 4px; border-radius: 2px; }

.password-field { position: relative; margin-bottom: 22px; }
.password-field #password { margin-bottom: 0; padding-right: 58px; }
.password-toggle { position: absolute; right: 3px; top: 3px; width: 44px; min-height: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--blue); border-radius: 5px; padding: 0; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #eaf1f7; color: #194b73; }
.password-toggle .eye-slash { display: none; }
.password-toggle.is-visible .eye-slash { display: block; }
#password::-ms-reveal { display: none; }
.caps-lock-hint { color: #775000; background: #fff5d9; border-radius: 5px; padding: 10px 12px; margin: -10px 0 22px; font-size: 14px; line-height: 1.5; }
.caps-lock-hint:empty { display: none; }
