/* ==========================================
   登录/注册弹窗样式 (auth.css)
   ========================================== */

/* --- 弹窗覆盖 --- */
#custom-login-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
#custom-login-modal .modal-header {
    border: none;
    padding: 16px 20px 0;
}
#custom-login-modal .modal-body {
    padding: 20px;
}

/* --- Tab 导航 --- */
#custom-login-modal .nav-tabs {
    border: none;
    width: 100%;
}
#custom-login-modal .nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}
#custom-login-modal .nav-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 0;
    position: relative;
}
#custom-login-modal .nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
}
#custom-login-modal .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

/* --- 表单 --- */
#custom-login-modal .form-control {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#custom-login-modal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* --- 按钮 --- */
#custom-login-modal .btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}
#custom-login-modal .btn-submit:hover {
    opacity: 0.9;
}
#custom-login-modal .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- 错误提示 --- */
.auth-error {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}
.auth-error.show {
    display: block;
}

/* --- 关闭按钮 --- */
#custom-login-modal .btn-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 0.7rem;
}
