:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14203b;
  background: #f4f7fb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.login-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.login-header, .login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: #fff;
  font-size: .875rem;
}
.login-header { min-height: 4.5rem; border-bottom: 1px solid #dce3ee; }
.login-header img { display: block; width: 7.5rem; height: auto; }
.login-header a, .login-footer a, .text-button { color: #25477f; font-weight: 650; }
a { text-underline-offset: .19em; }
a:hover, .text-button:hover { color: #10264f; }
:focus-visible { outline: 3px solid #2355b2; outline-offset: 3px; }
.login-main { display: grid; place-items: center; padding: clamp(1.25rem, 5vh, 3.5rem) 1rem; }
.access-card {
  width: min(100%, 28rem);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 1rem;
  box-shadow: 0 .75rem 2.5rem #14203b0b;
}
h1 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
.intro, .hint { color: #485975; line-height: 1.5; }
.intro { margin: .6rem 0 1.5rem; }
form { display: grid; gap: .5rem; }
label, .text-button, .hint, .switch-mode, .divider { font-size: .875rem; }
label { font-weight: 650; }
.field-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; }
form > :is(label, .field-label):not(:first-child) { margin-top: .65rem; }
input, button { font: inherit; }
input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #8e9bb0;
  border-radius: .5rem;
  padding: .65rem .75rem;
  background: #fff;
  color: inherit;
}
.password-field { position: relative; }
.password-field input { padding-right: 4.75rem; }
.password-field button { position: absolute; inset: .3rem .35rem .3rem auto; padding: .25rem .5rem; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.primary, .secondary {
  display: block;
  min-height: 2.85rem;
  width: 100%;
  padding: .65rem 1rem;
  border-radius: .5rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { margin-top: .6rem; border: 1px solid #17335b; background: #17335b; color: #fff; }
.primary:hover { background: #23477c; color: #fff; }
.secondary { background: #fff; border: 1px solid #8e9bb0; color: inherit; }
.secondary:hover { background: #edf3fc; }
.text-button { background: transparent; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .19em; }
.notice { margin: 0 0 1rem; border-radius: .5rem; padding: .65rem .75rem; background: #edf3fc; color: #25477f; font-size: .875rem; line-height: 1.5; }
.notice:empty { display: none; }
.notice[data-tone="error"] { background: #fff2ee; color: #8c2a22; }
.hint { margin: 0; }
.divider { display: flex; align-items: center; gap: .65rem; margin: .7rem 0; color: #485975; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dce3ee; }
.switch-mode { margin: .75rem 0 0; text-align: center; color: #485975; }
.session-actions { display: grid; justify-items: center; gap: 1rem; }
.login-footer { border-top: 1px solid #dce3ee; color: #485975; }
.login-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }

.signin-help { margin-top: .65rem; border-top: 1px solid #dce3ee; padding-top: .8rem; }
.signin-help summary { color: #25477f; cursor: pointer; font-size: .875rem; font-weight: 650; }
.signin-help ul, .confirmation-steps { margin: .7rem 0 1rem; padding-left: 1.25rem; }
.confirmation-steps { color: #485975; line-height: 1.5; }
.signin-help li + li, .confirmation-steps li + li { margin-top: .4rem; }
