:root {
  --blue: #024ad8;
  --ink: #19242c;
  --muted: #65737d;
  --line: #dce3e8;
  --error: #a92c3e;
  --green: #22705c;
  font-family: HPForma, "Trebuchet MS", sans-serif;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fbfcfd;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#e9eef280 1px, transparent 1px), linear-gradient(90deg, #e9eef280 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, #000, transparent 35%, transparent 65%, #000);
  pointer-events: none;
}
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px; background: white; z-index: 2; color: var(--blue); }
.skip-link:focus { top: 12px; }
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 44px;
  border-top: 4px solid var(--blue);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { flex-shrink: 0; display: block; }
.brand h1 { font-size: 22px; line-height: 1.2; font-weight: 600; margin: 0; }
.region { color: var(--green); font-size: 13px; line-height: 1.4; }
.login-main { display: grid; place-items: center; padding: 64px 24px 88px; }
.login-content { width: 100%; max-width: 392px; animation: enter 260ms ease-out both; }
.heading-rule { width: 36px; height: 4px; background: var(--blue); margin-bottom: 22px; }
.login-content h2 { font-size: 32px; line-height: 1.2; font-weight: 500; margin: 0 0 32px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.control { position: relative; }
.control input {
  width: 100%;
  height: 52px;
  min-width: 0;
  border: 1px solid #a9b7c1;
  border-radius: 4px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 120ms;
}
.control input:hover { border-color: #697d8c; }
.control input:focus { border-color: var(--blue); outline: 2px solid #024ad830; outline-offset: 1px; }
.control input[aria-invalid="true"] { border-color: var(--error); }
.password-control input { padding-right: 58px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
}
.password-toggle img { display: block; opacity: .6; }
.password-toggle:hover { background: #edf2f6; }
.password-toggle:hover img { opacity: 1; }
.sign-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 13px 50px;
  margin-top: 32px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 600;
}
.sign-in img { position: absolute; right: 18px; filter: brightness(0) invert(1); }
.sign-in:hover { background: #003db7; border-color: #003db7; }
.sign-in:disabled { opacity: .7; cursor: wait; }
.errorlist { list-style: none; padding: 0; margin: 8px 0 0; color: var(--error); font-size: 13px; line-height: 1.5; }
.form-error { padding: 14px 16px; margin-bottom: 24px; border-left: 3px solid var(--error); background: #fff1f3; }
.form-error .errorlist { margin: 0; }
.activation-account { margin: -12px 0 28px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.password-requirements { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.password-requirements ul { margin: 0; padding-left: 18px; }
.activation-signout { margin-top: 20px; text-align: center; }
.activation-signout button { min-height: 44px; padding: 8px 16px; color: var(--muted); border: 0; background: transparent; }
.login-footer { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .login-header { padding: 22px 24px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand h1 { font-size: 20px; }
  .region { width: 100%; padding-left: 46px; }
  .login-main { padding: 36px 24px 48px; }
  .login-content h2 { font-size: 30px; }
  .login-footer { padding: 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .login-content { animation: none; } .control input { transition: none; } }