.login-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    color: #24292e;
    font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color-scheme: light;
}
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 40px; }
.login-wordmark { font-size: 15px; font-weight: 650; letter-spacing: -.3px; }
.login-return { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #5d646b; font-size: 12px; }
.login-return:hover { color: #24292e; text-decoration: underline; text-underline-offset: 4px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 24px 20px 48px; }
.login-panel { width: 100%; max-width: 440px; padding: 36px 40px 30px; background: #fff; border: 1px solid #e4e6e8; border-radius: 8px; }
.login-identity { text-align: center; }
.login-logo { display: block; width: 96px; height: 96px; margin: 0 auto 20px; object-fit: contain; }
.login-school { font-size: 12px; font-weight: 500; color: #5d646b; }
.login-identity h1 { margin-top: 8px; font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; }
.login-description { max-width: 280px; margin: 12px auto 0; color: #626970; font-size: 13px; line-height: 1.7; }
.login-form { display: grid; gap: 20px; margin-top: 30px; }
.login-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.login-field input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd3d7; border-radius: 5px; background: #fff; color: #24292e; font: inherit; font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.login-field input:hover { border-color: #929ba3; }
.login-field input:focus { outline: none; border-color: var(--school-blue); box-shadow: 0 0 0 3px var(--school-focus); }
.login-field input[aria-invalid='true'] { border-color: #a85252; }
.login-submit { min-height: 48px; margin-top: 4px; border: 1px solid var(--school-blue); border-radius: 5px; background: var(--school-blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease; }
.login-submit:hover { background: var(--school-blue-hover); }
.login-submit:active { background: var(--school-blue-deep); }
.login-page :where(a, button) {
    -webkit-tap-highlight-color: transparent;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1), filter 180ms ease;
}
.login-page :where(a, button):active:not(:disabled) { transform: scale(.97); filter: brightness(.96); }
.login-page :where(a, button):focus-visible { outline: 2px solid var(--school-blue); outline-offset: 4px; }
.login-help { margin-top: 26px; padding-top: 22px; border-top: 1px solid #eceef0; text-align: center; font-size: 12px; color: #626970; line-height: 1.8; }
.login-message { margin-top: 24px; padding: 12px 14px; border: 1px solid #d6e3db; border-radius: 5px; background: #f2f7f3; color: #326146; font-size: 13px; }
.login-error { margin-top: 7px; color: #994343; font-size: 12px; line-height: 1.6; }
.login-footer { padding: 16px 20px 24px; color: #737b83; text-align: center; font-size: 11px; }
@media (max-width: 639px) {
    .login-header { padding: 14px 20px; gap: 12px; }
    .login-wordmark { font-size: 14px; }
    .login-return { font-size: 11px; gap: 6px; }
    .login-main { padding: 16px 20px 28px; }
    .login-panel { padding: 28px 24px 24px; }
    .login-logo { width: 84px; height: 84px; margin-bottom: 16px; }
    .login-identity h1 { font-size: 28px; }
    .login-form { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-page * { transition: none; }
    .login-page :where(a, button):active { transform: none; filter: none; }
}
