:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #17233d; background: #f4f7fb; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
button, input, select { font: inherit; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(520px, .95fr); background: linear-gradient(180deg, #f1f6ff 0%, #fbf8f2 100%); }
.auth-brand { display: flex; align-items: center; justify-content: center; padding: 64px; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.9), transparent 30%), radial-gradient(circle at 75% 75%, rgba(98,151,235,.18), transparent 30%); }
.auth-brand__content { display: flex; align-items: center; gap: 24px; }
.auth-brand img { width: 92px; height: 68px; object-fit: contain; }
.auth-brand__name { display: inline-flex; color: #5273a8; font-size: 15px; font-weight: 700; }
.auth-brand__rainbow {
    background: linear-gradient(120deg, #ff5a5f 0%, #ff9f1c 14%, #ffd166 28%, #06d6a0 42%, #00bbf9 58%, #7b61ff 74%, #f15bb5 88%, #ff5a5f 100%);
    background-size: 240% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: authRainbowFlow 2.8s linear infinite;
}
.auth-brand__rest { color: #5273a8; }
@keyframes authRainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) { .auth-brand__rainbow { animation: none; } }
.auth-brand h1 { margin: 10px 0 0; color: #173d78; font-size: 40px; line-height: 1.3; font-weight: 700; }
.auth-panel { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: min(100%, 470px); min-width: 0; padding: 38px 44px 34px; background: rgba(255,255,255,.96); border: 1px solid rgba(72,102,148,.1); border-radius: 8px; box-shadow: 0 22px 52px rgba(72,98,138,.12); }
.auth-card__brand { display: none; align-items: center; gap: 10px; color: #1d55a7; text-decoration: none; font-weight: 700; }
.auth-card__brand img { width: 46px; height: 34px; object-fit: contain; }
.auth-card header { margin: 14px 0 28px; }
.auth-card h2 { margin: 0; font-size: 27px; }
.auth-card header p { margin: 8px 0 0; color: #77859c; font-size: 14px; }
#auth-form { display: grid; gap: 18px; }
#auth-form > label:not(.auth-check) { display: grid; min-width: 0; gap: 8px; font-size: 14px; color: #33435d; }
input, select { width: 100%; height: 46px; border: 1px solid #dbe3ef; border-radius: 6px; padding: 0 13px; color: #17233d; background: #fff; outline: none; }
input:focus, select:focus { border-color: #3478df; box-shadow: 0 0 0 3px rgba(52,120,223,.11); }
.auth-form__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 7px; color: #6d7b91; font-size: 13px; }
.auth-check input { width: 16px; height: 16px; }
.auth-form__meta a, .auth-switch a { color: #276bce; text-decoration: none; }
.auth-submit { height: 46px; border: 0; border-radius: 6px; background: #2369d8; color: #fff; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #195bc1; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-switch { margin: 22px 0 0; text-align: center; color: #78869b; font-size: 13px; }
.auth-switch--back { padding-top: 18px; border-top: 1px solid #e8edf5; }
.auth-code { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }
.auth-code input { min-width: 0; }
.auth-code button { border: 1px solid #cbd9ec; border-radius: 6px; background: #f7faff; color: #2464c1; cursor: pointer; }
.auth-policy { margin-top: -4px; }
.auth-message { min-height: 20px; margin-top: 14px; text-align: center; font-size: 13px; color: #ca3b45; }
.auth-message.is-success { color: #16825d; }
@media (max-width: 960px) { .auth-layout { grid-template-columns: 1fr; } .auth-brand { display: none; } .auth-card__brand { display: flex; } }
@media (max-width: 600px) { .auth-panel { width: 100%; padding: 16px; align-items: stretch; } .auth-card { width: 100%; max-width: none; padding: 28px 22px; border-radius: 0; box-shadow: none; } .auth-card h2 { font-size: 24px; } }
