/* 认证页面特定样式 */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-primary);
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    position: relative;
}

/* 背景效果 */
.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
}

/* 左侧信息区域 */
.auth-info {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 100vh;
    padding: 2rem 0;
    box-sizing: border-box;
}

.auth-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,107,53,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-info-content {
    width: 100%;
    max-width: 620px;
    padding: 4rem 3.5rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    max-height: 100vh;
    box-sizing: border-box;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.auth-logo img {
    width: auto;
    height: 46px;
    max-width: min(220px, 100%);
    object-fit: contain;
    display: block;
}

.auth-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.auth-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* 功能展示 */
.auth-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* 权益展示 */
.auth-benefits {
    margin-bottom: 2.5rem;
}

.auth-benefits h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.benefit-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 用户评价 */
.user-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 统计数据 */
.auth-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 响应式设计 - 完整排行榜弹窗 */
@media (max-width: 768px) {
    .leaderboard-full-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
    }
    
    .leaderboard-full-header {
        padding: 1rem;
    }
    
    .leaderboard-full-header h2 {
        font-size: 1.25rem;
    }
    
    .leaderboard-full-body {
        padding: 1rem;
        max-height: calc(90vh - 80px);
    }
    
    .full-leaderboard-tabs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .full-leaderboard-section h3 {
        font-size: 1rem;
    }
}

/* 弹窗动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 右侧表单区域 */
.auth-form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
    min-height: 100vh;
    overflow-y: auto;
    padding: 2rem 0;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 620px;
    padding: 3rem 3.25rem;
    box-sizing: border-box;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.steam-bind-notice {
    margin: 1rem 0 1.35rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background:
        radial-gradient(circle at 90% -20%, rgba(245, 158, 11, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.08));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}

.steam-bind-notice.is-ready {
    border-color: rgba(255, 107, 53, 0.36);
}

.steam-bind-notice.is-error {
    border-color: rgba(244, 63, 94, 0.28);
    background:
        radial-gradient(circle at 90% -20%, rgba(244, 63, 94, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(127, 29, 29, 0.18), rgba(31, 41, 55, 0.2));
}

.steam-bind-notice__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.steam-bind-notice__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    animation: steamBindPulse 1.8s ease-out infinite;
}

.steam-bind-notice__title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.01em;
}

.steam-bind-notice__tag {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #b45309;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.steam-bind-notice__desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.steam-bind-notice__steamid {
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.steam-bind-notice__steamid-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffba92;
    margin-bottom: 0.3rem;
}

.steam-bind-notice__steamid code {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

.steam-bind-notice__meta {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.55rem;
}

.steam-bind-notice__meta-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.steam-bind-notice__meta-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.steam-bind-notice__meta-value {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.steam-bind-notice__actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.steam-bind-notice__cta,
.steam-bind-notice__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.steam-bind-notice__cta {
    color: #fff;
    background: linear-gradient(135deg, #ff7b3d, #ff5f2e);
    box-shadow: 0 14px 24px rgba(255, 95, 46, 0.22);
}

.steam-bind-notice__ghost {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.steam-bind-notice__cta:hover,
.steam-bind-notice__ghost:hover {
    transform: translateY(-1px);
}

.steam-bind-notice__cta:disabled,
.steam-bind-notice__ghost:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.steam-bind-notice__server {
    margin-top: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 107, 53, 0.03)),
        rgba(255, 255, 255, 0.02);
}

.steam-bind-notice__server-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.steam-bind-notice__server-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.steam-bind-notice__server-copy {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.steam-bind-notice__server-badge {
    flex: 0 0 auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.16);
    color: #ffb28f;
    border: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 0.74rem;
    font-weight: 700;
}

.steam-bind-notice__server-state {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.steam-bind-notice__server-state.is-error {
    color: #fda4af;
}

.steam-bind-notice__server-state.is-loading {
    color: #ffcbad;
}

@keyframes steamBindPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@media (max-width: 640px) {
    .steam-bind-notice__meta-item,
    .steam-bind-notice__server-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .steam-bind-notice__actions {
        flex-direction: column;
    }
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.08) contrast(1.08);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-steam {
    background: linear-gradient(135deg, rgba(23, 26, 33, 0.95), rgba(42, 71, 94, 0.9));
    border-color: rgba(102, 192, 244, 0.28);
}

.social-qq {
    background: linear-gradient(135deg, rgba(18, 150, 219, 0.2), rgba(18, 150, 219, 0.08));
    border-color: rgba(18, 150, 219, 0.28);
}

.social-wechat {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.2), rgba(7, 193, 96, 0.08));
    border-color: rgba(7, 193, 96, 0.28);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn:hover .social-btn-icon {
    filter: brightness(1.2) contrast(1.15);
    transform: scale(1.03);
}

.social-steam:hover {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: #66c0f4;
}

.social-qq:hover {
    background: #1296db;
    border-color: #1296db;
}

.social-wechat:hover {
    background: #07c160;
    border-color: #07c160;
}

/* 分隔线 */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0 1rem;
    font-size: 0.875rem;
    position: relative;
}

/* 表单样式 */
.auth-form-content {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 12px 0.75rem 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 52px;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle svg {
    margin-left: 0;
    display: block;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    background: rgba(18, 22, 30, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--text-muted);
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* 不符合要求 - 弱（红色）*/
.password-strength:not(.strength-weak):not(.strength-medium):not(.strength-strong) .strength-progress {
    width: 20%;
    background: #ff4444;
}

/* 符合要求但只满足1个条件 - 弱（橙色）*/
.strength-weak .strength-progress {
    width: 40%;
    background: #ff8800;
}

/* 符合要求且满足2个条件 - 中等（黄色）*/
.strength-medium .strength-progress {
    width: 70%;
    background: #ffc107;
}

/* 符合要求且满足3个条件（强密码）- 绿色 */
.strength-strong .strength-progress {
    width: 100%;
    background: #00c851;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--text-muted);
    transition: width 0.3s ease, background 0.3s ease;
}

/* 不符合要求 - 弱（红色）*/
.password-strength:not(.strength-weak):not(.strength-medium):not(.strength-strong) .strength-bar::before {
    width: 20%;
    background: #ff4444;
}

/* 符合要求但只满足1个条件 - 弱（橙色）*/
.strength-weak .strength-bar::before {
    width: 40%;
    background: #ff8800;
}

/* 符合要求且满足2个条件 - 中等（黄色）*/
.strength-medium .strength-bar::before {
    width: 70%;
    background: #ffc107;
}

/* 符合要求且满足3个条件（强密码）- 绿色 */
.strength-strong .strength-bar::before {
    width: 100%;
    background: #00c851;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 选择框样式 */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
}

.select-wrapper select {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 40px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* 复选框样式 */
.form-options {
    margin-bottom: 1rem;
}

.form-options-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.65;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-tertiary);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 链接样式 */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 按钮样式 */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单底部 */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.auth-switch-btn {
    margin-top: 0.875rem;
    text-align: center;
}

/* 错误信息 */
.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 16px;
}

.input-wrapper.error input {
    border-color: #ff4444;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* 成功模态框 */
.modal-success .modal-body {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.modal-success h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-success p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (min-width: 1025px) {
    .auth-body {
        height: 100dvh;
        overflow: hidden;
    }

    .auth-container {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    }

    .auth-container,
    .auth-info,
    .auth-form {
        min-height: 100dvh;
        height: 100dvh;
    }

    .auth-info,
    .auth-form {
        padding: 0;
        overflow: hidden;
    }

    .auth-info-content,
    .form-container {
        max-height: 100dvh;
        overflow: hidden;
        box-sizing: border-box;
    }

    .auth-info-content {
        max-width: 620px;
        padding: 2.35rem 2.9rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-logo {
        margin-bottom: 1.6rem;
    }

    .auth-logo img {
        height: 52px;
        max-width: 240px;
        width: auto;
        object-fit: contain;
        object-position: left center;
        flex-shrink: 0;
    }

    .auth-logo h2 {
        font-size: 1.9rem;
    }

    .auth-info h3 {
        font-size: 1.85rem;
        margin-bottom: 0.95rem;
    }

    .auth-info p {
        font-size: 1rem;
        margin-bottom: 1.55rem;
        line-height: 1.58;
    }

    .auth-benefits {
        margin-bottom: 1.55rem;
    }

    .auth-benefits h4 {
        font-size: 1.04rem;
        margin-bottom: 0.9rem;
    }

    .benefit-item {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .user-testimonial {
        padding: 1.25rem 1.4rem;
    }

    .testimonial-content p {
        margin-bottom: 0.85rem;
        line-height: 1.5;
        font-size: 0.94rem;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .author-name,
    .author-title {
        font-size: 0.84rem;
    }

    .form-container {
        max-width: 580px;
        padding: 1.1rem 2.35rem;
    }

    .form-header {
        margin-bottom: 0.55rem;
    }

    .form-header h1 {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .form-header p {
        font-size: 0.86rem;
    }

    .social-login {
        margin-bottom: 0.65rem;
    }

    .social-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }

    .divider {
        margin: 0.65rem 0;
    }

    .auth-form-content {
        margin-bottom: 0.65rem;
    }

    .form-row {
        gap: 0.7rem;
    }

    .form-group {
        margin-bottom: 0.55rem;
    }

    .form-group label {
        margin-bottom: 0.25rem;
        font-size: 0.78rem;
    }

    .input-wrapper input,
    .select-wrapper select {
        min-height: 42px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .password-strength {
        margin-top: 0.15rem;
        gap: 0.35rem;
    }

    .strength-text {
        font-size: 0.66rem;
    }

    .form-options {
        margin-bottom: 0.6rem;
    }

    .form-options-row {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 0.85rem;
        align-items: start;
    }

    .checkbox-label {
        font-size: 0.76rem;
        line-height: 1.5;
        gap: 0.55rem;
        white-space: nowrap;
    }

    .checkbox-custom {
        margin-top: 3px;
    }

    .btn-large,
    .btn-full {
        min-height: 42px;
    }

    .auth-footer {
        padding-top: 0.65rem;
    }

    .auth-footer p {
        font-size: 0.8rem;
    }

    .login-page .auth-form {
        align-items: center;
    }

    .login-page .form-container {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-info {
        display: none;
    }
    
    .form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}


@media (max-width: 768px) {
    .auth-form {
        min-height: auto;
        padding: 0;
    }

    .form-options-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}
