/* 登录弹框组件样式 - PDF解密风格 */

/* 隐藏旧版本的登录弹框装饰元素 */
.login-illustration,
.illustration-content,
.illustration-title {
    display: none !important;
}

/* 弹框遮罩层 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 弹框内容容器 */
.login-modal-content {
    border-radius: 20px !important;
    background: url('/public/images/login/loginbgimg.png') no-repeat;
    background-size: 100% 100%;
    width: 700px;
    height: 520px;
    margin-top: 0 !important;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.login-modal.show .login-modal-content {
    transform: scale(1);
}

/* 关闭按钮 */
.login-close,
.closeguanbi {
    cursor: pointer;
    opacity: 1;
    position: absolute;
    right: 0;
    top: 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 10001;
    background: transparent;
    border-radius: 0;
    width: auto;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.login-close:hover,
.closeguanbi:hover {
    opacity: 0.8;
}

.login-close img,
.closeguanbi img {
    cursor: pointer;
    width: 18px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* 内容容器 */
.neirongcontent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 左侧背景区域 */
.neircontentleft {
    width: 50%;
    height: 100%;
    padding: 5% 0 0 5%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.left-content {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-title {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
    margin-bottom: 10px;
}

.left-subtitle {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.left-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.feature-item {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

/* 右侧登录内容 */
.loginContent {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 二维码内容 */
.ewmewmcontent {
    position: relative;
    margin-top: 35px;
}

.ewmContent {
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ewmContent .Overlay {
    width: 213px;
    height: 213px;
    top: 1.8%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    z-index: 9999;
    margin-top: 10px;
    border-radius: 25px;
}

.ewmContent .Overlay span {
    font-size: 14px;
    text-align: center;
    padding: 0 10px;
}

/* 手机号表单样式 */
.phone {
    margin-top: 7%;
    width: 90%;
    margin: 7% auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phoneForm {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 移除通用样式，使用更具体的 .phone-input 和 .code-input 选择器 */
.phoneForm input:not(.phone-input):not(.code-input) {
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 0px;
    height: 46px;
    background-color: #F6F8FC;
    color: #333333;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}

.yzmcontent {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.yzmBtn {
    width: auto;
    min-width: 100px;
    height: 46px;
    background: linear-gradient(116deg, #9333EA 0%, #BA01F8 100%);
    border-radius: 8px;
    margin-left: 10px;
    padding: 0 15px;
    text-align: center;
    line-height: 46px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.yzmBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.phoneForm button,
.login-submit-btn {
    width: 100% !important;
    height: 50px !important;
    font-size: 16px;
    background: linear-gradient(116deg, #9333EA 0%, #BA01F8 100%);
    background-size: 100% 100%;
    border-radius: 12px;
    border: none;
    margin: 25px 0;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.phoneForm button:disabled,
.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 分隔线 */
.feng {
    text-align: center;
    font-weight: 600;
    color: #fff;
    width: 79%;
    margin: 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fengtxt {
    font-size: 14px;
    color: #3D3D3D;
    margin: 0 15px;
}

/* 切换按钮 */
.phoneicon {
    margin: 22px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btnsj {
    cursor: pointer;
    width: 70%;
    height: 45px;
    border: 1px solid #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: transparent;
    transition: all 0.3s ease;
}

.btnsj:hover {
    border-color: #BA01F8;
    background: rgba(186, 1, 248, 0.05);
}

.btnsj img {
    margin-right: 13px;
    width: 15px;
}

.btnsj span {
    color: #333333;
    font-weight: 500;
}

/* 协议文本 */
.checkText {
    color: #818181;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.checkText a {
    font-size: 12px;
}

.checkText .cs {
    color: #BA01F8 !important; /* 主题紫色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkText .cs:hover {
    color: #9A01D8 !important; /* 悬停时稍深的紫色 */
    text-decoration: underline;
}

.checkText input[type="checkbox"] {
    margin-right: 10px !important;
}

/* 表单项间距 */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

/* 错误信息样式 */
.form-error {
    color: #FD510C;
    font-size: 12px;
    margin-top: 5px;
}

/* 二维码容器 */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.qr-code {
    width: 213px;
    height: 213px;
    border: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* 二维码iframe容器 */
#ewm {
    width: 213px;
    height: 213px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

#ewm iframe {
    width: 213px !important;
    height: 213px !important;
    border: none !important;
    border-radius: 25px;
    display: block;
}

/* 二维码内容区域 */
.ewmewmcontent {
    position: relative;
    margin-top: 35px;
}

.qr-placeholder {
    text-align: center;
    color: #666;
}

.qr-placeholder i {
    font-size: 48px;
    color: #1aad19;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 14px;
    margin: 0;
}

.qr-refresh-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(116deg, #9333EA 0%, #BA01F8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* 登录表单容器调整 */
.login-form-container {
    width: 50%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-tabs {
    display: none;
}

.login-form {
    display: none;
    width: 100%;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.login-form.active {
    display: flex;
}

.login-title {
    display: none;
}

/* 手机号输入组 */
.phone-input-group {
    display: flex;
    border: none;
}

.phone-input {
    width: 100% !important;
    padding: 0 12px;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 0px;
    height: 46px;
    background-color: #F6F8FC;
    color: #333333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.code-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.code-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0 12px;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 0px;
    height: 46px;
    background-color: #F6F8FC;
    color: #333333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.get-code-btn {
    width: auto;
    min-width: 100px;
    height: 46px;
    background: linear-gradient(116deg, #9333EA 0%, #BA01F8 100%);
    border-radius: 8px;
    padding: 0 15px;
    text-align: center;
    line-height: 46px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.get-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 切换登录方式按钮 */
.phone-login-btn,
.wechat-login-btn {
    width: 70%;
    height: 45px;
    border: 1px solid #999999;
    border-radius: 15px;
    background: transparent;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px auto;
}

.phone-login-btn:hover,
.wechat-login-btn:hover {
    border-color: #BA01F8;
    background: rgba(186, 1, 248, 0.05);
}

/* 协议链接 */
.login-agreement {
    text-align: center;
    color: #818181;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 10px;
}

.login-agreement a {
    color: #2b3546;
    text-decoration: none;
    cursor: pointer;
}

.login-agreement a:hover {
    text-decoration: underline;
}

/* 协议弹框 */
.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.agreement-modal.show {
    display: flex;
}

.agreement-modal-content {
    width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.agreement-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.agreement-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.agreement-close {
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agreement-close:hover {
    background: #dee2e6;
}

.agreement-close i {
    color: #666;
    font-size: 12px;
}

.agreement-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-modal-content {
        width: 90%;
        max-width: 500px;
    }
    
    .agreement-modal-content {
        width: 90%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .login-modal-content {
        width: 95%;
        height: auto;
        min-height: 520px;
    }
}
