:root {
 font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
 color: #17243a;
 background: #f4f6fa;
 font-size: 15px;
 line-height: 1.65;
}
* { box-sizing: border-box; }
body {
 margin: 0;
 min-height: 100dvh;
 display: grid;
 place-items: center;
 padding: 28px 20px;
 overflow-y: auto;
}
main {
 width: 100%;
 max-width: 420px;
 background: #fff;
 border: 1px solid #dde3eb;
 border-radius: 10px;
 padding: 32px;
 box-shadow: 0 12px 40px #17243a08;
}
.brand { color: #315b91; font-size: 15px; font-weight: 700; text-decoration: none; }
h1 { color: #17243a; font-size: 28px; line-height: 1.3; letter-spacing: -.045em; margin: 28px 0 10px; }
.intro { color: #647387; font-size: 15px; margin: 0 0 24px; }
label { display: block; color: #46566b; font-size: 15px; font-weight: 550; margin: 20px 0 8px; }
input, button { font: inherit; color: #17243a; }
input {
 width: 100%;
 min-width: 0;
 height: 48px;
 padding: 11px 12px;
 border: 1px solid #cfd9e3;
 border-radius: 8px;
 background: #fff;
 font-size: 16px;
}
input:focus { border-color: #315b91; }
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1; }
.password-field button {
 flex: 0 0 auto;
 min-width: 56px;
 min-height: 48px;
 padding: 0 12px;
 border: 1px solid #cfd9e3;
 border-radius: 8px;
 background: #f7f9fc;
 color: #526277;
 font-size: 15px;
 white-space: nowrap;
}
.password-field button:hover, .password-field button[aria-pressed=true] { background: #eaf0f8; color: #315b91; border-color: #a9bdd6; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.submit {
 width: 100%;
 min-height: 48px;
 padding: 11px 14px;
 border: 1px solid #315b91;
 border-radius: 8px;
 background: #315b91;
 color: #fff;
 font-size: 16px;
 font-weight: 650;
}
.submit:hover { background: #244a79; border-color: #244a79; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #315b91; outline-offset: 3px; }
#message { color: #a44838; font-size: 15px; line-height: 1.6; min-height: 24px; margin: 14px 0; overflow-wrap: anywhere; }
.footnote { color: #647387; font-size: 15px; margin: 24px 0 0; }
@media (max-width: 480px) {
 body { padding: 20px 16px; }
 main { padding: 26px 22px; }
 h1 { font-size: 26px; margin-top: 24px; }
}
@media (max-height: 650px) {
 body { align-items: start; padding-block: 20px; }
}
