/**
 * 微信优先登录页面样式
 * 韬客AE - www.talkae.com
 */

/* 登录页面容器 */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 70px;
    background: #f5f5f5;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 60px 30px;
    text-align: center;
}

/* 登录标题 */
.login-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

/* 微信二维码容器 - stylelite=1 新版简洁样式 */
.wechat-qr-wrapper {
    width: 220px;
    height: 168px;
    margin: 0 auto 30px;
    background: #fff;
}

.wechat-qr-container {
    width: 220px;
    height: 168px;
    position: relative;
}

.wechat-qr-container iframe {
    width: 220px !important;
    height: 168px !important;
    border: none;
}

.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 10;
}

.qr-loading i {
    font-size: 48px;
    color: #07c160;
    display: block;
    margin-bottom: 10px;
}

.qr-loading p {
    font-size: 14px;
    margin: 0;
    color: #999;
}

/* 登录选项按钮 */
.login-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.login-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgb(245 245 245);
    color: #000;
}

.login-option-btn:hover {
    border-color: #ccc;
    background: #fafafa;
    color: #333;
}

.login-option-btn i {
    font-size: 18px;
    color: #333;
    margin-right: 0;
}

/* 微信跳转按钮（移动端） */
.wechat-redirect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    margin-bottom: 24px;
}

.wechat-redirect-btn:hover {
    background: #06ad56;
    color: #fff;
}

.wechat-redirect-btn i {
    font-size: 22px;
}

/* 用户协议 */
.login-agreement {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.login-agreement a {
    color: #666;
    text-decoration: none;
}

.login-agreement a:hover {
    color: #333;
    text-decoration: underline;
}

/* 邮箱登录弹窗 */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.email-modal.show {
    display: block;
}

.email-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.email-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: 90%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0 0 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #333;
}

.form-input::placeholder {
    color: #999;
}

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 12px;
}

.captcha-row .captcha-input {
    flex: 1;
}

.get-captcha-btn {
    flex-shrink: 0;
    padding: 0 16px;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.get-captcha-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.get-captcha-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

/* 验证码提示 */
.captcha-tip {
    font-size: 13px;
    color: #999;
    margin: 8px 0 16px;
    text-align: left;
}

/* 错误提示 */
.form-error {
    color: #ff4d4f;
    font-size: 13px;
    text-align: left;
    margin: 0 0 12px;
    min-height: 20px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 48px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #555;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式适配 */
@media (max-width: 767px) {
    .login-page {
        padding: 20px 15px;
        margin-top: 60px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .login-option-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .email-modal-content {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: 24px;
    }
}
