/* ========== 登录 / 注册 / 找回密码 ========== */
.auth-page { min-height: 100vh; padding: calc(var(--nav-h) + 36px) 20px 48px; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: center; background: #fafafa; }
.auth-card {
    width: 100%; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
    background: #fff; border: 1px solid #eee; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    animation: auth-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.auth-card.narrow { max-width: 440px; grid-template-columns: 1fr; }
@keyframes auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 品牌区 */
.auth-brand {
    position: relative; overflow: hidden; padding: 44px 40px; background: #111; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 480px;
}
.auth-brand-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand-top img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.auth-brand-top span { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.auth-brand-copy { position: relative; z-index: 1; }
.auth-brand-copy h2 { font-size: 26px; line-height: 1.4; margin: 0 0 10px; font-weight: 700; }
.auth-brand-copy p { font-size: 14px; line-height: 1.7; color: #aaa; margin: 0; }
.auth-brand-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-brand-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #ccc; }
.auth-brand-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.auth-creature { position: absolute; opacity: 0.09; filter: invert(1); pointer-events: none; }
.auth-creature.c1 { width: 220px; right: -40px; top: 40px; animation: auth-float 9s ease-in-out infinite; }
.auth-creature.c2 { width: 140px; left: -20px; bottom: 70px; animation: auth-float 11s ease-in-out -3s infinite; }
@keyframes auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 表单区 */
.auth-form-wrap { padding: 44px 44px 32px; display: flex; flex-direction: column; }
.auth-title { font-size: 24px; font-weight: 700; color: #111; margin: 0 0 6px; }
.auth-subtitle { font-size: 14px; color: #999; margin: 0 0 26px; }
.auth-subtitle a { color: #111; font-weight: 500; }
.auth-subtitle a:hover { text-decoration: underline; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 13px; }
.auth-row a { color: #666; }
.auth-row a:hover { color: #111; }
.auth-capslock { font-size: 12px; color: #ff9500; margin-top: 6px; display: none; }
.auth-capslock.show { display: block; }
.auth-alert {
    display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; margin-bottom: 18px;
    font-size: 13px; line-height: 1.5; animation: auth-shake 0.32s ease;
}
.auth-alert.error { background: #fff2f1; color: #d93025; }
.auth-alert.info { background: #eef8f1; color: #1f8a46; animation: none; }
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
@keyframes auth-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth-submit { margin-top: 4px; padding: 13px 18px; font-size: 15px; }
.auth-foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: #bbb; text-align: center; }
.auth-foot a { color: #999; }
.auth-foot a:hover { color: #111; }
.auth-captcha { height: 44px; border-radius: 8px; border: 1px solid #e5e5e5; cursor: pointer; flex-shrink: 0; }
.auth-done { text-align: center; padding: 20px 0 8px; }
.auth-done-icon {
    width: 56px; height: 56px; border-radius: 50%; background: #eef8f1; color: #1f9d48; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; animation: auth-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.4) both;
}
@keyframes auth-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 768px) {
    .auth-page { padding: calc(var(--nav-h) + var(--nav-gap)) 0 24px; background: #fff; }
    .auth-card, .auth-card.narrow { grid-template-columns: 1fr; border: none; box-shadow: none; border-radius: 0; max-width: none; }
    .auth-brand { display: none; }
    .auth-form-wrap { padding: 20px 24px 24px; }
    .auth-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-card, .auth-alert, .auth-done-icon, .auth-creature { animation: none !important; }
}
