/* ===================================
   登录弹窗样式
   =================================== */

/* 登录弹窗 */
.login-modal {
    padding: 30px 40px;
    background: white;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-modal-header .login-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* Layui 弹窗自定义样式 */
.login-modal-layer {
    border-radius: 12px !important;
    overflow: visible !important;
}

.login-modal-layer .layui-layer-content {
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    max-height: 90vh !important;
}

/* 确保关闭按钮正常显示 */
.login-modal-layer .layui-layer-close {
    right: 10px !important;
    top: 10px !important;
}

/* 登录弹窗关闭按钮主色 hover 效果 */
.login-modal-layer .layui-layer-setwin .layui-layer-close:hover {
    background-color: var(--theme-color-primary) !important;
    color: #fff !important;
    border-radius: 50%;
}

/* 确保弹窗容器完全显示 */
.login-modal-layer .layui-layer-wrap {
    overflow: visible !important;
}

/* 移动端弹窗优化 */
@media (max-width: 768px) {
    .login-modal-layer {
        max-width: 90% !important;
    }
    
    .login-modal {
        padding: 20px 20px;
    }
    
    .login-modal-header .login-title {
        font-size: 20px;
    }
    
    .login-modal .login-tab {
        font-size: 12px;
        padding: 6px 4px;
    }
    
    .login-modal .send-code-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* 弹窗中的登录tabs */
.login-modal .login-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.login-modal .login-tab {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.login-modal .login-tab.active {
    background: white;
    color: #FF5C02;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 弹窗内容区域 */
.login-modal .login-content {
    display: none;
}

.login-modal .login-content.active {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* 弹窗表单 */
.login-modal .layui-form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 弹窗表单组 */
.login-modal .form-group {
    margin: 0 auto 16px auto;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.login-modal .login-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-modal .login-input:focus {
    outline: none;
    border-color: #FF5C02;
    box-shadow: 0 0 0 3px rgba(255, 92, 2, 0.1);
}

/* 验证码组 */
.login-modal .verification-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.login-modal .verification-group .login-input {
    flex: 1;
    min-width: 0;
}

.login-modal .send-code-btn {
    padding: 10px 16px;
    background: #FF5C02;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
    height: 40px;
}

.login-modal .send-code-btn:hover {
    background: #FF7022;
}

.login-modal .send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 密码组 */
.login-modal .password-group {
    position: relative;
}

.login-modal .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.login-modal .toggle-password img {
    width: 20px;
    height: 20px;
}

/* 协议 */
.login-modal .agreement-box {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.login-modal .agreement-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    /* 确保checkbox显示 */
    display: inline-block !important;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

.login-modal .agreement-box label {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    word-break: break-word;
    cursor: pointer;
    flex: 1;
}

.login-modal .agreement-box a {
    color: #FF5C02;
    text-decoration: none;
}

.login-modal .agreement-box a:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-modal .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF5C02 0%, #FF7022 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-modal .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 2, 0.3);
}

/* 登录提示 */
.login-modal .login-tip {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    line-height: 1.5;
}

/* 忘记密码 */
.login-modal .forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 16px;
}

.login-modal .forgot-link {
    color: #FF5C02;
    text-decoration: none;
    font-size: 12px;
}

.login-modal .forgot-link:hover {
    text-decoration: underline;
}

/* 其他登录方式 */
.login-modal .other-login {
    margin-top: 25px;
}

.login-modal .divider {
    text-align: center;
    position: relative;
    margin-bottom: 16px;
}

.login-modal .divider::before,
.login-modal .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.login-modal .divider::before {
    left: 0;
}

.login-modal .divider::after {
    right: 0;
}

.login-modal .divider span {
    font-size: 11px;
    color: #999;
    background: white;
    padding: 0 8px;
}

.login-modal .social-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.login-modal .social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.login-modal .social-btn:hover {
    border-color: #FF5C02;
    box-shadow: 0 2px 8px rgba(255, 92, 2, 0.2);
    transform: translateY(-2px);
}

.login-modal .social-btn img {
    width: 26px;
    height: 26px;
}

/* ===================================
   绑定弹窗样式
   =================================== */

.social-bind-modal {
    padding: 30px 40px;
    background: white;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.bind-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.bind-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.bind-subtitle {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* 绑定表单 */
.social-bind-modal .layui-form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 绑定表单继承登录弹窗样式 */
.social-bind-modal .form-group {
    margin-bottom: 16px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.social-bind-modal .login-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.social-bind-modal .login-input:focus {
    outline: none;
    border-color: #FF5C02;
    box-shadow: 0 0 0 3px rgba(255, 92, 2, 0.1);
}

.social-bind-modal .verification-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.social-bind-modal .verification-group .login-input {
    flex: 1;
    min-width: 0;
}

.social-bind-modal .send-code-btn {
    padding: 10px 16px;
    background: #FF5C02;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
    height: 40px;
}

.social-bind-modal .send-code-btn:hover {
    background: #FF7022;
}

.social-bind-modal .send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.social-bind-modal .login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF5C02 0%, #FF7022 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.social-bind-modal .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 2, 0.3);
}

.social-bind-modal .login-tip {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    line-height: 1.5;
}

/* 绑定弹窗移动端优化 */
@media (max-width: 768px) {
    .social-bind-modal {
        padding: 20px 20px;
    }
}

