:root {
  color-scheme: light;
  --ink: #1b2b49;
  --muted: #536174;
  --blue: #254fb4;
  --line: #dde3eb;
  --control: #aab5c3;
  --paper: #ffffff;
  --page: #f5f7fb;
  font: 16px/1.5 Nunito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.login-card {
  width: min(100%, 488px);
  padding: clamp(24px, 6vw, 45px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 16px 48px rgb(27 43 73 / 8%);
}
.login-header { text-align: center; margin-bottom: 28px; }
.crest { display: block; width: 63px; height: 72px; object-fit: contain; margin: 0 auto 16px; }
h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 1.875rem); font-weight: 550; line-height: 1.2; letter-spacing: -.025em; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: .875rem; font-weight: 500; }
.field input[aria-invalid="true"] { border-color: #b42318; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--control);
  border-radius: 8px;
}
.password { position: relative; }
.password input { padding-inline-end: 50px; }
.password-toggle {
  position: absolute;
  inset-block: 1px;
  inset-inline-end: 1px;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #edf2fb; color: var(--blue); }
.password-toggle:focus-visible { outline-offset: -3px; }
.password-toggle .eye-off { display: none; }
.password-toggle[data-visible="true"] .eye { display: none; }
.password-toggle[data-visible="true"] .eye-off { display: block; }
.remember { display: flex; align-items: center; gap: 7px; width: fit-content; margin: 4px 0 16px; font-size: .875rem; color: var(--muted); }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.primary, .google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9375rem;
  text-align: center;
  font-weight: 600;
}
.google { text-decoration: none; }
.primary { border: 1px solid var(--blue); background: var(--blue); color: var(--paper); }
.primary:hover { background: #1c4098; }
.separator { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-size: .875rem; }
.separator::before, .separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google { border: 1px solid #747775; background: var(--paper); color: #1f1f1f; font-family: "Google Sans", Roboto, system-ui, sans-serif; font-weight: 500; }
.google:hover { background: #f5f8ff; }
.google img { width: 20px; height: 20px; object-fit: contain; }
.other-account {
  display: block;
  width: fit-content;
  min-height: 36px;
  margin: 9px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .875rem;
}

.login-notice, .login-status, .login-errors {
  margin: 0 0 14px;
  font-size: .875rem;
}
.login-notice { color: var(--muted); }
.login-status { color: #166534; }
.login-errors { padding-inline-start: 1.25rem; color: #b42318; }
.field .login-errors { margin: 0; }
