/* 登录弹窗样式 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(-50px);
    transition: all 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: translateY(0);
}

.auth-modal h3 {
    color: #5a67d8;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 600;
}

.auth-modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.auth-input-group {
    margin-bottom: 25px;
    text-align: left;
}

.auth-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.auth-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.auth-input-group input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #5a67d8 0%, #4facfe 100%);
    color: white;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #4c63d2 0%, #3d8bfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 103, 216, 0.3);
}

.auth-btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.auth-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.auth-error-msg {
    color: #e53e3e;
    margin-top: 15px;
    padding: 10px;
    background: #fed7d7;
    border-radius: 8px;
    display: none;
}

.auth-success-msg {
    color: #38a169;
    margin-top: 15px;
    padding: 10px;
    background: #c6f6d5;
    border-radius: 8px;
    display: none;
}

.auth-lockout-msg {
    color: #d69e2e;
    margin-top: 15px;
    padding: 10px;
    background: #faf089;
    border-radius: 8px;
    display: none;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: #f1f5f9;
    color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .auth-btn {
        margin-bottom: 10px;
    }
}