/* ============================================================
   认证页样式（登录 / 注册 / 找回密码 / 注册成功）
   移植自 v2_fanscome（Vue 旧版 UserLayout + Login/Register/Forgot/RegisterResult）
   双栏布局：左侧品牌区 + 右侧表单区
   ============================================================ */

.auth { min-height: 100vh; }

/* ===== 双栏布局 ===== */
.auth-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ===== 左侧品牌区 ===== */
.brand-panel {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.9) 100%);
    overflow: hidden;
}
/* 动态背景 */
.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 0;
    overflow: hidden;
}
.auth-bg .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(245, 34, 45, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(82, 196, 26, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(250, 173, 20, 0.08) 0%, transparent 60%);
}
.auth-bg .particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25%      { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
    50%      { transform: translateY(-20px) translateX(-10px); opacity: 0.4; }
    75%      { transform: translateY(-40px) translateX(5px); opacity: 0.5; }
}

.brand-content {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    margin-bottom: 60px;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    transform: translateX(10px);
}
.brand-logo:hover .logo-wrapper {
    box-shadow: 0 12px 40px rgba(245, 34, 45, 0.4);
    transform: rotate(5deg);
}
.logo-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F5222D 0%, #ff4d4f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(245, 34, 45, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.logo-wrapper .logo {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}
.brand-text .brand-name {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.brand-text .brand-slogan {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}
.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.feature-icon svg {
    width: 24px;
    height: 24px;
}
.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feature-title { font-size: 16px; font-weight: 600; color: #fff; }
.feature-desc { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* 页脚 */
.section-footer {
    margin-top: auto;
    padding: 60px 0 0;
    text-align: center;
}
.section-footer .footer-links {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.section-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}
.section-footer .footer-links a:hover { color: #fff; }
.section-footer .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}
.section-footer .footer-links a:hover::after { width: 100%; }
.section-footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ===== 右侧表单区 ===== */
.form-panel {
    width: 520px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

/* ===== 主题色 ===== */
.theme-login {
    --accent: #F5222D;
    --accent2: #ff4d4f;
    --accentDark: #cf1322;
    --soft: rgba(245, 34, 45, 0.08);
    --btnShadow: 0 4px 14px rgba(245, 34, 45, 0.35);
    --btnShadowHover: 0 6px 20px rgba(245, 34, 45, 0.45);
    --iconShadow: 0 4px 16px rgba(245, 34, 45, 0.3);
}
.theme-register {
    --accent: #52c41a;
    --accent2: #73d13d;
    --accentDark: #389e0d;
    --soft: rgba(82, 196, 26, 0.08);
    --btnShadow: 0 4px 14px rgba(82, 196, 26, 0.35);
    --btnShadowHover: 0 6px 20px rgba(82, 196, 26, 0.45);
    --iconShadow: 0 4px 16px rgba(82, 196, 26, 0.3);
}
.theme-forgot {
    --accent: #faad14;
    --accent2: #ffc53d;
    --accentDark: #d48806;
    --soft: rgba(250, 173, 20, 0.08);
    --btnShadow: 0 4px 14px rgba(250, 173, 20, 0.35);
    --btnShadowHover: 0 6px 20px rgba(250, 173, 20, 0.45);
    --iconShadow: 0 4px 16px rgba(250, 173, 20, 0.3);
}

/* ===== 表单卡片（登录/注册/找回密码） ===== */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--iconShadow);
}
.auth-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}
.auth-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.auth-form .form-item {
    margin-bottom: 24px;
}
.input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}
.input-label svg {
    color: var(--accent);
    width: 15px;
    height: 15px;
}

.input-affix {
    position: relative;
    display: flex;
    align-items: center;
}
.input-affix .affix-icon {
    position: absolute;
    left: 12px;
    color: rgba(0, 0, 0, 0.25);
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.input-affix .auth-input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 38px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}
.input-affix .auth-input::placeholder { color: #bfbfbf; }
.input-affix .auth-input:hover,
.input-affix .auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--soft);
}

/* 密码强度提示 */
.form-tip {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}
.form-tip svg { color: #faad14; width: 13px; height: 13px; flex-shrink: 0; }

/* 忘记密码 */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}
.forge-password {
    font-size: 14px;
    color: var(--accent);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.forge-password svg { width: 14px; height: 14px; }
.forge-password:hover {
    color: var(--accentDark);
    text-decoration: underline;
}

/* 主按钮 */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    border: none;
    color: #fff;
    box-shadow: var(--btnShadow);
    transition: all 0.3s;
    cursor: pointer;
    margin-top: 4px;
}
.auth-btn svg { width: 18px; height: 18px; }
.auth-btn:hover {
    background: linear-gradient(135deg, var(--accentDark) 0%, var(--accent) 100%);
    box-shadow: var(--btnShadowHover);
    transform: translateY(-1px);
}
.auth-btn:disabled {
    background: #ccc;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
}
.divider-text {
    padding: 0 16px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

/* 次要按钮（红色描边，各页一致） */
.auth-section { text-align: center; }
.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    border: 1.5px solid #F5222D;
    border-radius: 8px;
    color: #F5222D;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.outline-btn svg { width: 15px; height: 15px; }
.outline-btn:hover {
    background: rgba(245, 34, 45, 0.05);
    color: #cf1322;
    border-color: #cf1322;
}

/* 验证码行 */
.code-row {
    display: flex;
    gap: 12px;
}
.code-row .input-affix { flex: 1; min-width: 0; }
.code-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--btnShadow);
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.code-btn:hover {
    background: linear-gradient(135deg, var(--accentDark) 0%, var(--accent) 100%);
    box-shadow: 0 4px 12px var(--btnShadowHover);
}
.code-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===== 注册成功 ===== */
.success-animation {
    position: relative;
    margin-bottom: 32px;
}
.success-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(82, 196, 26, 0.4);
    animation: scaleIn 0.5s ease-out;
}
.success-circle svg {
    width: 48px;
    height: 48px;
    color: #fff;
    animation: checkmark 0.5s ease-out 0.3s both;
}
@keyframes scaleIn {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes checkmark {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}
.confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: confetti-fall 1s ease-out forwards;
    opacity: 0;
}
.confetti span:nth-child(1) { background: #52c41a; left: 20%; animation-delay: 0.1s; }
.confetti span:nth-child(2) { background: #F5222D; right: 20%; animation-delay: 0.2s; }
.confetti span:nth-child(3) { background: #faad14; left: 10%; top: 30%; animation-delay: 0.3s; }
.confetti span:nth-child(4) { background: #1890ff; right: 10%; top: 30%; animation-delay: 0.4s; }
.confetti span:nth-child(5) { background: #722ed1; left: 50%; top: 10%; animation-delay: 0.5s; }
@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}

.result-content { animation: fadeIn 0.5s ease-out 0.3s both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.result-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.result-subtitle {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 24px;
}
.user-info-card {
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid #b7eb8f;
    text-align: left;
}
.info-item { display: flex; align-items: center; gap: 16px; }
.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.info-icon svg { width: 24px; height: 24px; }
.info-detail { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.info-label { font-size: 12px; color: rgba(0, 0, 0, 0.45); margin-bottom: 4px; }
.info-value { font-size: 16px; font-weight: 600; color: #1a1a2e; word-break: break-all; }

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F5222D 0%, #ff4d4f 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(245, 34, 45, 0.35);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.primary-btn svg { width: 18px; height: 18px; }
.primary-btn:hover {
    background: linear-gradient(135deg, #cf1322 0%, #F5222D 100%);
    box-shadow: 0 6px 20px rgba(245, 34, 45, 0.45);
    transform: translateY(-1px);
}
.secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #d9d9d9;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    text-decoration: none;
    transition: all 0.3s;
}
.secondary-btn svg { width: 18px; height: 18px; }
.secondary-btn:hover {
    border-color: #F5222D;
    color: #F5222D;
    background: rgba(245, 34, 45, 0.05);
}
.tips-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    padding-top: 16px;
    border-top: 1px dashed #e8e8e8;
}
.tips-section svg { color: #faad14; width: 13px; height: 13px; }

/* ===== 提示条 ===== */
.auth-alert { margin-bottom: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .auth-layout { flex-direction: column; }
    .brand-panel {
        min-height: auto;
        padding: 40px 24px;
    }
    .brand-logo { margin-bottom: 40px; }
    .logo-wrapper { width: 64px; height: 64px; }
    .logo-wrapper .logo { width: 36px; height: 36px; }
    .brand-text .brand-name { font-size: 28px; }
    .brand-text .brand-slogan { font-size: 14px; }
    .brand-features { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .feature-item { flex: 1; min-width: 140px; padding: 16px; }
    .feature-icon { width: 40px; height: 40px; }
    .feature-icon svg { width: 20px; height: 20px; }
    .feature-title { font-size: 14px; }
    .feature-desc { font-size: 12px; }
    .section-footer { padding: 32px 0 0; }
    .form-panel { width: 100%; min-height: auto; }
    .form-container { padding: 40px 24px; }
}
@media (max-width: 576px) {
    .brand-panel { padding: 32px 20px; }
    .brand-logo { flex-direction: column; text-align: center; gap: 16px; margin-bottom: 32px; }
    .brand-logo:hover { transform: none; }
    .logo-wrapper { width: 56px; height: 56px; border-radius: 16px; }
    .logo-wrapper .logo { width: 32px; height: 32px; }
    .brand-text .brand-name { font-size: 24px; }
    .brand-text .brand-slogan { font-size: 13px; }
    .brand-features { flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .feature-item { flex: none; padding: 14px 16px; }
    .section-footer { padding: 20px 0 0; }
    .form-container { padding: 32px 20px; }
    .auth-title { font-size: 24px; }
    .auth-icon { width: 60px; height: 60px; }
    .auth-icon svg { width: 30px; height: 30px; }
    .code-row { flex-direction: column; }
    .code-btn { width: 100%; }
}
