/* 统一登录各阶段使用同一画面，切换来源地址时保持布局稳定。 */
.sso-screen { margin: 0; min-height: 100vh; background: #f5f7fa; color: #263445; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.sso-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.sso-card { width: min(100%, 420px); box-sizing: border-box; padding: 36px 32px 28px; background: #fff; border: 1px solid #e7edf3; border-radius: 16px; box-shadow: 0 12px 40px #20385008; text-align: center; }
.sso-brand { margin-bottom: 30px; color: #43556b; font-size: 13px; font-weight: 600; letter-spacing: 2px; }
.sso-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; border-radius: 9px; background: #eaf3ff; color: #3385e8; letter-spacing: 0; vertical-align: middle; }
.sso-spinner { width: 30px; height: 30px; margin: 0 auto 22px; border: 3px solid #eaf1f9; border-top-color: #409eff; border-radius: 50%; animation: sso-spin 1s linear infinite; }
.sso-card h1 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.sso-status { min-height: 44px; margin: 0; color: #67778a; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.sso-steps { display: flex; justify-content: space-between; gap: 8px; margin: 24px 0; padding: 0; list-style: none; font-size: 12px; color: #8794a5; }
.sso-steps li { flex: 1; border-top: 3px solid #edf1f6; padding-top: 10px; }
[data-step="connect"] .sso-steps li:first-child, [data-step="verify"] .sso-steps li:nth-child(-n+2), [data-step="enter"] .sso-steps li { color: #2877d6; border-color: #409eff; }
.sso-back { color: #718197; font-size: 12px; text-decoration: none; }
.sso-back:hover { color: #2877d6; text-decoration: underline; }
.sso-back:focus-visible { outline: 2px solid #409eff; outline-offset: 5px; }
[data-step="error"] .sso-spinner { animation: none; border-color: #f9e4e4; border-top-color: #e76d6d; }
[data-step="error"] .sso-status { color: #bd4141; }
@keyframes sso-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sso-spinner { animation: none; } }
@media (max-width: 480px) { .sso-card { padding: 28px 22px 24px; } }
