/* Login dimensions, palette and controls match the existing Shfl site. */
:root { color-scheme: light; }
.shfl-login { margin: 0; min-height: 100vh; background: #fff; color: #102a43; font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.5; --login-accent: #334e68; --login-accent-dark: #102a43; }
.shfl-login *, .shfl-login *::before, .shfl-login *::after { box-sizing: border-box; }
.shfl-login [hidden] { display: none !important; }
.shfl-login h1, .shfl-login p { margin: 0; }
.shfl-login a { text-underline-offset: .2em; }
.shfl-login button, .shfl-login input { font: inherit; }
.shfl-login button { cursor: pointer; }
.shfl-login :focus-visible { outline: 2px solid var(--login-accent); outline-offset: 3px; }
.login-main { max-width: 80rem; margin: auto; padding: 5rem 1rem; }
.login-brand { display: flex; justify-content: center; }
.login-brand a { display: block; }
.login-logo { display: block; width: 10rem; height: auto; }
.shfl-login .login-heading { margin: 1.5rem auto 0; text-align: center; font-size: 1.25rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -.025em; }
.login-card { width: 100%; max-width: 30rem; margin: 1.5rem auto 0; padding: 3rem 1.5rem; border-radius: .5rem; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .06); }
.login-fields { display: flex; flex-direction: column; gap: 1.5rem; }
.login-label { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; line-height: 1.5rem; font-weight: 500; }
.login-input { height: 2.25rem; width: 100%; min-width: 0; border: 1px solid #bcccdc; border-radius: .375rem; padding: .375rem .75rem; background: #fff; color: inherit; font-weight: 400; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: border-color 150ms, box-shadow 150ms; }
.login-input:hover { border-color: #829ab1; }
.login-input:focus-visible { outline: 2px solid var(--login-accent); outline-offset: -2px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; line-height: 1.5rem; }
.login-options a { font-weight: 600; }
.login-remember { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; }
.login-remember input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--login-accent); }
.login-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1rem; }
.shfl-login .login-button { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.25rem; padding: .375rem .75rem; border: 0; border-radius: .375rem; background: var(--login-accent); color: #fff; font-size: .875rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: background-color 150ms, box-shadow 150ms; }
.shfl-login .login-button:hover, .shfl-login .login-button:focus-visible { background: var(--login-accent-dark); }
.login-button[aria-busy="true"] { cursor: wait; }
.login-button[aria-busy="true"]::before { content: ""; width: .875rem; height: .875rem; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-alternate { display: block; width: 100%; padding: 0; color: var(--login-accent); font-size: .875rem; text-align: center; }
.login-google { display: flex; justify-content: center; min-height: 2.5rem; max-width: 100%; overflow: hidden; }
.login-divider { position: relative; display: flex; justify-content: center; margin: 2.5rem 0 1.5rem; font-size: .875rem; line-height: 1.5rem; }
.login-divider::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid #bcccdc; }
.login-divider span { position: relative; padding: 0 1.5rem; background: #fff; }
.shfl-login .login-error { max-width: 30rem; margin: 1rem auto 0; padding: .75rem 1rem; border-radius: .375rem; background: #fef2f2; color: #b91c1c; text-align: center; overflow-wrap: anywhere; }
.shfl-login .login-guidance { margin-top: 1.5rem; font-size: .875rem; line-height: 1.5rem; text-align: center; }
.shfl-login .login-submessage { max-width: 28rem; margin: 1rem auto 0; text-align: center; }
.shfl-login .login-message { margin-bottom: 1.5rem; line-height: 1.5rem; }
.login-hint { font-weight: 400; color: #486581; }
.login-return { display: flex; justify-content: center; margin: 2rem 0 0; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.login-card { animation: login-enter 220ms ease-out; }
@media (min-width: 640px) { .login-main { padding: 6rem 1.5rem 5rem; } .login-card { padding: 3rem; } }
@media (prefers-reduced-motion: reduce) { .login-card, .login-button[aria-busy="true"]::before { animation: none; } .login-input, .login-button { transition: none; } }
