:root {
 color-scheme: light;
 font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
 color: #172b3a;
 background: #f3f6f8;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #fff; background: #245e80; }

.signin-shell {
 min-height: 100vh;
 min-height: 100svh;
 display: grid;
 place-items: center;
 padding: 32px 20px;
}

.signin-panel {
 width: 100%;
 max-width: 440px;
 padding: 44px 36px 32px;
 border: 1px solid #d9e1e7;
 border-radius: 12px;
 background: #fff;
}

h1 {
 margin: 0;
 font-size: 30px;
 font-weight: 650;
 line-height: 1.2;
 letter-spacing: -.025em;
 text-wrap: balance;
}

.signin-error-title { font-size: 27px; }
.signin-description { margin: 16px 0 28px; color: #405767; font-size: 16px; line-height: 1.6; }
form { margin: 0; }

.signin-button {
 width: 100%;
 min-height: 48px;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 12px;
 padding: 12px 16px;
 border: 1px solid #758896;
 border-radius: 6px;
 color: #172b3a;
 background: #fff;
 font: inherit;
 font-size: 16px;
 font-weight: 600;
 line-height: 1.4;
 cursor: pointer;
}

.signin-button:hover { background: #f0f5f8; border-color: #245e80; }
.signin-button:active { background: #e5eef4; }
.signin-button:focus-visible, .signin-back:focus-visible { outline: 3px solid #24668e; outline-offset: 4px; }
.signin-provider-icon { flex: none; }
.signin-back { display: block; width: fit-content; margin: 18px auto 0; padding: 8px 0; color: #245e80; font-size: 15px; line-height: 1.5; text-underline-offset: 3px; }
.signin-back:hover { color: #163e56; }
.signin-note { margin: 24px 0 0; color: #526775; font-size: 13px; line-height: 1.6; }

@media (max-width: 480px) {
 .signin-shell { padding: 24px 16px; }
 .signin-panel { padding: 32px 24px 28px; }
 h1 { font-size: 28px; }
 .signin-error-title { font-size: 25px; }
}

@media (forced-colors: active) {
 .signin-button:focus-visible, .signin-back:focus-visible { outline-color: Highlight; }
}
