/* Authentication is a separate, quiet entry point to the workspace. */
body.signin-page {background:#faf9f6;color:#111111}
body.signin-page > main {max-width:none;padding:0;margin:0;width:100%}
body.signin-page > main > header,body.signin-page > main > footer {display:none}
#signin.auth-layout {grid-template-columns:minmax(0,1fr) minmax(400px,1fr);gap:0;padding:0;min-height:100svh;align-items:stretch}
#signin[hidden] {display:none}
.auth-intro {background:#f6f8fe;padding:48px clamp(36px,6vw,100px);display:flex;flex-direction:column;text-align:left}
.auth-brand {display:inline-flex;align-self:flex-start;border-radius:6px}
.auth-brand img {width:156px;height:40px;object-fit:contain}
.auth-story {margin:auto 0;padding:80px 0;max-width:500px}
.auth-intro .eyebrow {color:#111111;font-size:13px;letter-spacing:1.8px}
.auth-intro h1 {color:#111111;font-size:clamp(26px,3vw,48px);font-weight:400;line-height:1.18;letter-spacing:-2px;margin:24px 0}
body.signin-page .auth-intro h1 em {color:#315bc4;font-style:normal}
.auth-intro p {color:#525252;max-width:400px;font-size:14px;line-height:1.9}
.auth-example {display:flex;gap:15px;margin-top:40px;padding-top:26px;border-top:1px solid #dce5f5}
.auth-example-icon {color:#315bc4;background:#e2eaf4;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:12px}
.auth-example strong {display:block;font-size:13px;line-height:1.7;font-weight:600}
.auth-example span {display:block;color:#525252;font-size:13px;line-height:1.8;margin-top:5px;max-width:320px}
.auth-intro-foot {font-size:13px;color:#111111;padding-top:20px}
#signin .auth-card {align-self:center;justify-self:center;max-width:420px;width:100%;padding:50px 24px;border:0;border-radius:0;box-shadow:none;background:transparent;margin:0}
.auth-card > .eyebrow {color:#111111;font-size:13px;letter-spacing:1.3px}
.auth-card h2 {font-size:29px;font-weight:600;line-height:1.3;letter-spacing:-1px;color:#111111;margin:16px 0 10px}
.auth-card #authDescription {font-size:13px;line-height:1.8;margin-bottom:28px;color:#525252}
.auth-card form {gap:18px}
.auth-card label {font-size:13px;color:#111111;font-weight:600;margin-bottom:8px}
.auth-card input {border:1px solid var(--field-border);border-radius:10px;min-height:48px;padding:12px 14px;background:#fff;color:#111111;font-size:16px}
.auth-card .hint {color:#525252;font-size:13px;line-height:1.75}
.auth-card button,.auth-card a {-webkit-tap-highlight-color:transparent}
.auth-card .primary {min-height:48px;padding:12px 20px;background:#315bc4;border:1px solid #315bc4;border-radius:10px;font-size:13px;font-weight:600}
.auth-card .primary:hover {background:#264ca9}
.auth-card .primary:disabled {opacity:.65;cursor:wait}
.auth-card .subtle {font-size:13px;color:#315bc4;min-height:44px}
.auth-card .auth-forgot {margin-top:-12px;margin-bottom:-10px}
.auth-card .password-input button {right:7px;padding:0 12px;color:#525252}
.auth-card .password-input input {padding-right:78px}
.auth-divider {margin:26px 0;color:#525252;font-size:13px}
.auth-divider::before,.auth-divider::after {background:#deddd9}
.auth-card .sso-button {border:1px solid var(--field-border);border-radius:10px;min-height:48px;padding:12px 16px;background:#fff;font-size:13px;color:#111111}
.auth-card .sso-button:hover {background:#edf2fc;border-color:#9aadd5}
.auth-switch {font-size:13px;margin:18px 0 0;color:#525252}
.auth-card .auth-switch button {font-size:13px;text-underline-offset:3px}
.auth-card #setupNotice {margin-top:26px;padding-top:20px;border-top:1px solid #deddd9;font-size:13px;line-height:1.8}
.auth-legal {display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 0;font-size:13px;color:#525252}
.auth-legal a {color:inherit;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:32px}
.auth-legal span {align-self:center}
.auth-card #authMessage {background:#e8eef9;color:#264a91;padding:14px;font-size:13px;line-height:1.7;border:1px solid #c8d5ef;border-radius:10px;margin:0}
.auth-card #authMessage[data-kind=error] {background:#f5f7fc;color:#111111;border-color:#315bc4}
.auth-card :is(input,button,a):focus-visible {outline:3px solid #315bc4;outline-offset:3px}
.auth-card #authTitle:focus {outline:none}
@media (max-width:850px) {
 #signin.auth-layout { grid-template-columns:1fr; }
 .auth-intro { padding:24px; background:transparent; }
 .auth-brand img { width:135px; height:34px; }
 .auth-story,.auth-intro-foot { display:none; }
 #signin .auth-card { padding:24px 28px 40px; max-width:440px; align-self:start; }
}
@media (prefers-reduced-motion:reduce) { .auth-card * { transition:none!important; } }

/* Authentication feedback and recovery share the form's readable control scale. */
.auth-field-error{color:var(--error);font-size:13px;line-height:1.6;margin:8px 0 0}
.auth-card input[aria-invalid=true]{border-color:var(--error);box-shadow:0 0 0 1px var(--error)}
.auth-card :is(#authMessage,#authTitle):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.auth-card #authMessage{overflow-wrap:anywhere}
.auth-card :is(#authEditEmail,#authRecovery){display:block;text-align:left;margin-top:12px;text-decoration:underline;text-underline-offset:3px}
.auth-card .sso-button[aria-disabled=true]{opacity:.55;cursor:wait;pointer-events:none}
.auth-card button:disabled{cursor:wait;opacity:.55}
.auth-card .auth-legal a{color:var(--accent)}

/* Homepage veil, scoped to authentication. The form remains a quiet solid surface. */
#signin.auth-layout{overflow:hidden;background:linear-gradient(90deg,#f6f8fe 0%,#f6f8fe 42%,#faf9f6 70%)}
.auth-intro{position:relative;isolation:isolate;overflow:visible;background:transparent}
#signin .auth-card{position:relative;z-index:1}
#authRibbon{position:absolute;inset:0;width:130%;height:100%;pointer-events:none;z-index:-1}
.auth-story{position:relative;padding:60px 0;max-width:440px}
.auth-story h1,.auth-story p{text-shadow:0 1px 14px #f6f8fe}
.auth-motion{align-self:flex-start;display:grid;place-items:center;width:44px;height:44px;background:radial-gradient(circle,#315bc4 18px,transparent 18.5px);border:0;border-radius:50%;padding:0;min-height:44px;color:#fff}.auth-motion:hover{background:radial-gradient(circle,#264ca9 18px,transparent 18.5px);color:#fff}
.auth-motion svg{width:16px;height:16px;fill:currentColor;stroke:none}
.auth-motion:focus-visible{outline:3px solid #315bc4;outline-offset:4px}
.auth-card #setupNotice:empty{display:none}
.auth-field-error{color:#111}
.auth-card input[aria-invalid=true]{border-color:#315bc4;box-shadow:0 0 0 1px #315bc4}
@media(max-width:850px){#authRibbon,.auth-motion{display:none}}

.auth-story h1 > span,.auth-story h1 > em{display:block;white-space:nowrap}

.auth-form-panel{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;min-width:0;padding:32px 0 54px}
#signin .auth-form-panel .auth-card{margin:auto 0}
.auth-form-panel .auth-legal{justify-content:center;text-align:center;margin:0;padding:0 20px;width:100%;box-sizing:border-box}
@media(max-width:850px){.auth-form-panel{padding:0 0 24px;min-height:calc(100svh - 82px)}.auth-form-panel .auth-legal{margin-top:24px}}
