* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
}
a { text-decoration: none; color: inherit; }

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f8;
    padding: 24px;
}
.auth-shell {
    width: 100%;
    max-width: 1080px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 45, 120, .16);
}
.auth-visual {
    position: relative;
    overflow: hidden;
    padding: 56px 48px;
    color: #fff;
    background: linear-gradient(145deg, #1d3fae 0%, #2f5bea 55%, #5b8bf7 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-visual h1 { font-size: 34px; line-height: 1.25; margin: 0 0 16px; color: #fff; }
.auth-visual p { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.8; margin: 0 0 30px; }
.vp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; margin-bottom: 46px; }
.vp-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 14px; color: rgba(255,255,255,.9); }
.vp-points li { display: flex; align-items: center; gap: 10px; }
.vp-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,.18); }
.vp-glow { position: absolute; right: -120px; bottom: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(147,197,253,.35), transparent 70%); }

.auth-card {
    width: 100%;
    max-width: none;
    background: #fff;
    border-radius: 0;
    padding: 48px 54px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f172a; margin-bottom: 22px; }
.mark {
    width: 32px; height: 32px; border-radius: 50%;
    background: #2f5bea; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.sub { color: #6b7280; font-size: 13px; margin: 0 0 22px; }
.mode-tabs { display: flex; gap: 20px; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.mode-tabs button { background: none; border: 0; padding: 8px 0; font-size: 14px; color: #64748b; cursor: default; border-bottom: 2px solid transparent; }
.mode-tabs button.on { color: #2f5bea; border-bottom-color: #2f5bea; font-weight: 600; }

.auth-form { display: grid; gap: 12px; }
.auth-field { position: relative; }
.auth-field svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: #94a3b8; fill: none; stroke-width: 1.6; }
.auth-field input {
    width: 100%; height: 44px; border: 1px solid #d9e0ec; border-radius: 6px;
    padding: 0 13px 0 40px; font-size: 14px; outline: none; color: #1f2937; background: #fff;
}
.auth-field input:focus { border-color: #2f5bea; box-shadow: 0 0 0 3px rgba(47,91,234,.09); }
.auth-field input::placeholder { color: #a3adbd; }
.submit {
    width: 100%; height: 44px; border: 0; border-radius: 6px;
    background: #2f5bea; color: #fff; font-size: 15px; cursor: pointer;
}
.submit:hover { background: #2450d6; }
.auth-error {
    background: #fff2f2; border: 1px solid #ffd4d4; color: #b42318;
    padding: 9px 11px; border-radius: 6px; font-size: 13px; margin-bottom: 14px;
}
.auth-success {
    background: #f0faf5; border: 1px solid #c9e8d8; color: #2ba471;
    padding: 9px 11px; border-radius: 6px; font-size: 13px; margin-bottom: 14px;
}
.foot-row { margin-top: 12px; text-align: right; font-size: 13px; color: #6b7280; }
.foot { margin-top: 18px; text-align: center; font-size: 13px; color: #6b7280; }
.foot a, .foot-row a { color: #2f5bea; }
.auth-site-footer {
    position: absolute; left: 0; right: 0; bottom: 14px;
    text-align: center; color: #a3adbd; font-size: 11px; line-height: 1.8;
}
a { color: inherit; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 460px; min-height: auto; }
    .auth-visual { display: none; }
    .auth-card { padding: 34px 28px 26px; }
    .auth-site-footer { position: static; margin-top: 18px; }
}
