/* 
 * Aimoofa智能营运助手 - 登录页样式
 * 与微信风格和登录成功页保持一致的设计
 * 包含响应式布局和动画效果
 * 针对PC场景优化的大气布局
 */


 .web_qrcode_type_iframe{


 }

 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* 防止滚动条出现影响布局 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5; /* 更柔和的背景色 */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 添加背景渐变效果，增强视觉体验 */
body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.8) 0%, rgba(230, 235, 240, 0.8) 100%);
    z-index: -1;
}

.container {
    background-color: #fff;
    border-radius: 20px; /* 更大的圆角 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.08); /* 更强的阴影效果 */
    width: 100%;
    max-width: 960px; /* 显著增加容器宽度，适合PC场景 */
    min-height: 620px; /* 设置最小高度 */
    padding: 0; /* 移除内边距，使用内部元素控制间距 */
    position: relative;
    margin: 0;
    display: flex; /* 使用flex布局 */
    overflow: hidden;
}

/* 左侧装饰区域 */
.decoration-area {
    width: 45%;
    background: linear-gradient(135deg, #07C160 0%, #05A54E 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.decoration-area:before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.decoration-area h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.decoration-area p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.decoration-area .logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* 右侧登录区域 - 调整布局 */
.login-area {
    width: 55%;
    padding: 50px 40px; /* 增加顶部内边距，使内容更居中 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 改为居中布局 */
    align-items: center; /* 水平居中 */
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 35px; /* 增加底部间距 */
    color: #000;
    text-align: center;
}

.switch-login {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.switch-login:hover {
    background-color: #e6e6e6;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.switch-login img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.old-template{}


.web_qrcode_panel_area {
    height: 400px;
}

.impowerBox .qrcode {
    width: 180px !important;
    margin-top: 10px;
    border: 1px solid #e2e2e2;
    padding: 0px;
}
.login-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 380px; /* 减小高度，使布局更紧凑 */
    margin-bottom: 20px;
}

.login-form, .qrcode-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.login-form {
    transform: translateX(0);
    justify-content: center; /* 改为居中布局 */
    padding-top: 0; /* 移除顶部内边距 */
}

.qrcode-container {
    transform: translateX(100%);
    align-items: center;
    justify-content: center; /* 改为居中布局 */
    padding: 20px 0;
}

.login-container.show-qrcode .login-form {
    transform: translateX(-100%);
}

.login-container.show-qrcode .qrcode-container {
    transform: translateX(0);
}

.form-group {
    margin-bottom: 24px; /* 增加表单组间距 */
    text-align: left;
    position: relative;
    width: 100%; /* 确保宽度为100% */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #07C160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
    outline: none;
}

.login-btn, .register-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.login-btn {
    background-color: #07C160;
    color: white;
    margin-bottom: 15px;
}

.login-btn:hover {
    background-color: #06ae56;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(7, 193, 96, 0.2);
}

.register-btn {
    background-color: #fff;
    color: #07C160;
    border: 1px solid #07C160;
}

.register-btn:hover {
    background-color: #f0fff5;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(7, 193, 96, 0.1);
}

/* 隐藏不必要的分隔线 */
.or-divider {
    display: none; /* 隐藏分隔线 */
}

.tips {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    line-height: 1.5;
    text-align: center;
}

/* 二维码区域 - 调整大小和位置 */

.qrcode iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    transform: scale(1.05);
    transform-origin: center center;
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    z-index: 100;
    display: none;
}

.click-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 101;
}

.status {
    font-size: 15px;
    color: #333;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-weight: 500;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(7, 193, 96, 0.3);
    border-radius: 50%;
    border-top-color: #07C160;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
    width: 100%; /* 确保宽度为100% */
}

.success-message {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
    width: 100%; /* 确保宽度为100% */
}

.simulate-btn {
    background-color: #faad14;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    margin-top: 20px;
    transition: all 0.3s;
}

.simulate-btn:hover {
    background-color: #d48806;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(250, 173, 20, 0.2);
}

.footer {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    text-align: center;
    width: 100%;
    display: none;
}

.footer a {
    color: #07C160;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #06ae56;
    text-decoration: underline;
}

/* 忘记密码链接样式 */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
    width: 100%; /* 确保宽度为100% */
}

.forgot-password a {
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* 密码可见性切换 - 修复位置问题 */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    z-index: 2;
}

/* 输入框清除按钮 - 修复位置问题 */
.input-clear {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.form-group input:not(:placeholder-shown) ~ .input-clear {
    display: block;
}

/* 记住我选项 */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
    width: 100%; /* 确保宽度为100% */
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #07C160;
}

.remember-me label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .container {
        max-width: 880px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 90%;
        flex-direction: column;
        min-height: auto;
    }
    
    .decoration-area {
        width: 100%;
        padding: 40px;
        min-height: 200px;
    }
    
    .login-area {
        width: 100%;
        padding: 40px;
    }
    
    .decoration-area h2 {
        font-size: 28px;
    }
    
    .decoration-area .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .login-container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .decoration-area {
        padding: 30px;
        min-height: 180px;
    }
    
    .login-area {
        padding: 30px;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .qrcode {
        width: 220px;
        height: 220px;
    }
    
    .login-container {
        height: 360px;
    }
    
    /* 调整移动端输入框图标位置 */
    .password-toggle, .input-clear {
        top: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 15px;
        border-radius: 12px;
    }
    
    .decoration-area {
        padding: 25px;
        min-height: 150px;
    }
    
    .login-area {
        padding: 25px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .form-group input {
        height: 44px;
        font-size: 14px;
    }
    
    .login-btn, .register-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .qrcode {
        width: 200px;
        height: 200px;
    }
    
    .switch-login {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    
    .login-container {
        height: 360px;
    }
    
    /* 调整小屏幕输入框图标位置 */
    .password-toggle, .input-clear {
        top: 34px;
    }
}

/* 动画效果 */
.animated {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单验证样式 */
.form-group input.invalid {
    border-color: #ff4d4f;
    background-color: #fff8f8;
}

.form-group .error-hint {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group input.invalid + .error-hint {
    display: block;
}

/* 加载中遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(7, 193, 96, 0.3);
    border-radius: 50%;
    border-top-color: #07C160;
    animation: spin 1s linear infinite;
}

/* 切换按钮动画 */
.switch-login {
    transition: transform 0.3s;
}

.switch-login:active {
    transform: scale(0.9);
}

.qrcode {
    position: relative;
    width: 279px;
    height: 420px !important;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
    margin-top: 68px;
}