/* 登录/注册弹窗样式 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 44px 44px 40px;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 隐藏滚动条但保持滚动功能 */
.auth-modal-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

.auth-modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f8fafc;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.auth-form-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #0f172a;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-input:hover:not(:focus) {
    border-color: #cbd5e1;
}

.auth-send-code {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-send-code:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.02);
}

.auth-send-code:active {
    transform: translateY(-50%) scale(0.98);
}

.auth-send-code:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0 20px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.auth-divider::before {
    margin-right: 16px;
}

.auth-divider::after {
    margin-left: 16px;
}

.auth-divider span {
    font-size: 12px;
    color: #94a3b8;
    background: #ffffff;
    padding: 0 4px;
    white-space: nowrap;
}

.auth-wechat-btn {
    width: 100%;
    padding: 13px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.auth-wechat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(7, 193, 96, 0.1), transparent);
    transition: left 0.5s ease;
}

.auth-wechat-btn:hover::before {
    left: 100%;
}

.auth-wechat-btn:hover {
    background: #f8fffe;
    border-color: #07c160;
    color: #07c160;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.auth-wechat-btn:active {
    transform: translateY(0);
}

.auth-wechat-btn svg {
    color: #07c160;
    transition: transform 0.3s ease;
}

.auth-wechat-btn:hover svg {
    transform: scale(1.1);
}

.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.auth-footer-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.auth-footer-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.auth-footer-text a:hover {
    color: #1d4ed8;
}

.auth-footer-text a:hover::after {
    width: 100%;
}

/* 微信验证样式 */
.wechat-verify-container {
    text-align: center;
    padding: 8px 0 24px 0;
}

.wechat-icon-wrapper {
    display: none;
}

.wechat-verify-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.wechat-verify-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.qrcode-container {
    display: inline-block;
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wechat-verify-tip {
    font-size: 13px;
    color: #475569;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.wechat-verify-warning {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    padding: 8px 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.5;
}

.success-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #15803d;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.success-badge svg {
    color: #22c55e;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        padding: 36px 28px 32px;
        border-radius: 20px 20px 0 0;
    }
    
    .auth-header {
        margin-bottom: 28px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    .qrcode-container {
        padding: 10px;
    }
    
    .auth-btn {
        padding: 13px;
    }
    
    .auth-wechat-btn {
        padding: 12px;
    }
}
