/* 登录页面新样式 - 根据设计图实现 - 使用px固定单位 */

.login-new-page {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    overflow-x: hidden;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 30px;
}   
.bg-image {
    position: absolute;
    height: 100vh;
    left: 0;
    top: 0;
    width: 100%;
    background-image: url('../../../skin/login/e41d59b260490872b3a8f1dbbacce7883165d067.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.api_login{display: flex;justify-content: space-between; padding-top:20px; max-width: 264px;margin: 0 auto;}
.api_login a{display: inline-block;width: 56px;height: 56px;background-color: #ffffff;border-radius: 50%;display: flex;align-items: center;justify-content: center;}
.api_login a img{height: 27px;}
.bg-ellipse {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.6;
}


/* 左侧标题区域 */
.login-left {
    position:absolute;
    z-index: 1;
    max-width:100%;
    width: 1600px;
    left: 50%;
    transform: translateX(-50%);
    top:120px;
    padding-left: 30px;
}

.main-title {
    font-family: "Alimama ShuHeiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: bold;
    font-size: 64px;
    line-height: 80px;
    color: #000a60;
    margin: 0 0 10px 0;
    white-space: nowrap;
}

.sub-title {
    font-size: 24px;
    color: #000a60;
    margin: 0;
    line-height: normal;
}

/* 功能卡片区域 */
.feature-cards {
    display: flex;
    gap: 20px;
    margin-top: 509px;
    margin-left: -50px;
    position: relative;
    z-index: 1;
}

.feature-card {
    flex: 1;
    max-width: 320px;
    background: linear-gradient(180deg, #DEF2FF 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    opacity: 0.7;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-icon {
    width: 67px;
    height: 81px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 49px;
    height: 49px;
    object-fit: contain;
}

.feature-icon-1 {
    background: linear-gradient(213.631deg, #5862FF 4.8142%, #9690FD 93.257%);
}

.feature-icon-2 {
    background: linear-gradient(213.631deg, #3B7FFE 4.8142%, #4DC2FF 93.257%);
}

.feature-icon-3 {
    background: linear-gradient(213.631deg, #FEAA36 4.8142%, #FFCE51 93.257%);
}

.feature-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: normal;
}

.feature-desc {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #999;
    margin: 0;
    line-height: normal;
}

/* 右侧登录表单 */
.login-right {
    position: relative;
    z-index: 1;
    max-width:100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-card {
    position: relative;
    width: 380px;
    border-radius: 12px;
    background:#ffffff;
    padding: 35px 24px;
    margin-top: 0;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    display: inline-block;
}

.login-title {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 24px;
    color: #333;
    margin: 0 0 28px 0;
    text-align: center;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group .form-control {
    width: 100%;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    border:none;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    line-height: 36px;
    border: 1px solid #e5e5e5;
}

.form-group .form-control::placeholder {
    color: #999;
}

.form-group .form-control:focus {
    background: #fff;
}

/* 禁用浏览器自动填充的背景色 */
.form-group .form-control:-webkit-autofill,
.form-group .form-control:-webkit-autofill:hover,
.form-group .form-control:-webkit-autofill:focus,
.form-group .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.8) inset !important;
    -webkit-text-fill-color: #333 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    background-color: #fff !important;
}

.form-group-code {
    position: relative;
    align-items: center;
}

.form-group-code .code-input {
    flex: 1;
    height: 48px;
    padding-right: 50px;
}

.form-group-code .paw-on-off {
    position: absolute;
    right: 16px;
    top: 68%;
    cursor: pointer;
    z-index: 10;
    color: #999;
}

.form-group-code .paw-on-off i {
    font-size: 18px;
}

.btn-get-code {
    width: 83px;
    height: 35px;
    background: linear-gradient(135deg, #2fb1fe 0%, #537cff 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 9px;
    top: 11px;
}

.btn-get-code:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.form-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    align-items: center;
}

.link-register {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 14px;
}

.link-register:hover {
    opacity: 0.8;
}

.link-forgot {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s;
}

.link-forgot:hover {
    opacity: 0.8;
}

.btn-login {
    width: 100%;
    height: 48px;
    background:#000;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
    opacity: 0.8;
    line-height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.btn-login:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 255, 0.3);
}

.form-agreement {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
}

.form-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 1px solid #c4c5d0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.form-agreement input[type="checkbox"]:checked {
    background: #517fff;
    border-color: #517fff;
}

.form-agreement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.form-agreement label {
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 14px;
}

.link-terms {
    color: #666666;
    text-decoration: none;
}

.link-terms:hover {
    text-decoration: underline;
}

/* 验证码图片 */
.form-group-vertify {
    margin-bottom: 20px;
}

.form-group-vertify .formText {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group-vertify .form-control {
    flex: 1;
}

.vertify-img {
    height: 48px;
    width: auto;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 第三方登录 */
.social-login {
    margin-top: 0;
    padding-top: 20px;
}

.social-login .login-more {
    text-align: center;
}

.social-login .login-more .title {
    display: none;
}

.social-login .login-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-login .login-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.social-login .login-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-login .login-item i.iconfont {
    font-size: 28px !important;
    font-family: "iconfont" !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

/* 如果使用图片图标，隐藏字体图标 */
.social-login .login-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.social-login .login-item.weixin i.iconfont {
    color: #54C135 !important;
}

.social-login .login-item.qq i.iconfont {
    color: #70A8D6 !important;
}

.social-login .login-item.weibo i.iconfont {
    color: #E07366 !important;
}

/* 确保图标显示 - 如果图标不显示，可能是字体文件路径问题 */
.social-login .login-item i.iconfont.e-qq:before,
.social-login .login-item i.iconfont.e-weixin:before,
.social-login .login-item i.iconfont.e-weibo:before {
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* 底部提示 */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 16px;
    color: #2b4d92;
}

.login-footer p {
    margin: 0;
}

/* 响应式设计 - 使用px */
@media (max-width: 1200px) {
    .login-wrapper {
    }
    
    .login-left {
        padding-left: 80px;
        padding-top: 60px;
    }
    
    .login-right {
        padding-right: 80px;
    }
    
    .main-title {
        font-size: 48px;
        line-height: 60px;
    }
    
    .sub-title {
        font-size: 20px;
    }
    
    .feature-cards {
        margin-top: 200px;
        gap: 15px;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .feature-desc {
        font-size: 14px;
    }
}

@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
        padding: 40px 20px;
        padding-top: 40px;
    }
    
    .login-left {
        max-width: 100%;
        padding: 20px;
        padding-left: 40px;
        padding-top: 20px;
        text-align: left;
    }
    
    .login-right {
        max-width: 100%;
        padding: 20px;
        padding-right: 40px;
    }
    
    .login-card {
        width: 100%;
        max-width: 380px;
    }
    
    .main-title {
        font-size: 36px;
        line-height: 48px;
    }
    
    .sub-title {
        font-size: 18px;
    }
    
    .feature-cards {
        flex-direction: column;
        gap: 15px;
        margin-top: 150px;
    }
    
    .feature-card {
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 15px;
    }
    
    .feature-icon {
        margin-bottom: 0;
        margin-right: 15px;
        width: 56px;
        height: 56px;
    }
    
    .feature-icon img {
        width: 40px;
        height: 40px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .feature-desc {
        font-size: 12px;
    }
    
    .bg-image,
    .bg-ellipse {
        display: none;
    }
}

/* 兼容旧版样式 */
.login-new-page .register_index {
    display: none;
}

/* 注册页额外字段样式 */
.login-new-page .form-group.group_z {
    margin-bottom: 16px;
}

.login-new-page .form-group.group_z .form-control {
    width: 100%;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    line-height: 36px;
    border: 1px solid #e5e5e5;
}

.login-new-page .form-group.group_z .form-control::placeholder {
    color: #999;
}

.login-new-page .form-group.group_z .form-control:focus {
    background: #fff;
}

.login-new-page .form-group.group_z .input-group {
    display: flex;
    align-items: center;
}

.login-new-page .form-group.group_z .input-group-addon {
    display: none;
}

.login-new-page .form-group.group_z .input-group .form-control {
    flex: 1;
}

.login-new-page .form-group.group_z textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: 16px;
    line-height: 1.5;
    resize: vertical;
}

.login-new-page .form-group.group_z select.form-control {
    height: 48px;
    padding: 0 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.login-new-page .form-group.group_z .select {
    width: 100%;
}

.login-new-page .form-group.group_z .select .dt {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.login-new-page .form-group.group_z .select .dd {
    width: 100%;
}

.login-new-page .form-group.group_z fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.login-new-page .form-group.group_z fieldset legend {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.login-new-page .form-group.group_z .checkbox-custom,
.login-new-page .form-group.group_z .radio-custom {
    margin-bottom: 12px;
}

.login-new-page .form-group.group_z .checkbox-custom label,
.login-new-page .form-group.group_z .radio-custom label {
    margin-left: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.login-new-page .form-group.group_z .input-group.btn-direction {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-new-page .form-group.group_z .input-group.btn-direction .form-control {
    flex: 1;
}

.login-new-page .form-group.group_z .input-group.btn-direction .btn {
    height: 48px;
    padding: 0 18px;
    background: linear-gradient(135deg, #2fb1fe 0%, #537cff 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-new-page .form-group.group_z .input-group.btn-direction .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-new-page .form-group.group_z .input-group.btn-direction .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-new-page .form-group.group_z .tis {
    display: none;
}

/* 注册页验证码输入框样式 */
.login-new-page .form-group.group_z.form-group-code {
    position: relative;
}

.login-new-page .form-group.group_z.form-group-code .code-input {
    padding-right: 100px;
}

.login-new-page .form-group.group_z.form-group-code .btn-get-code {
    width: 73px;
    height: 29px;
    background: #000;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 3px;
    top: 4px;
}

.login-new-page .form-group.group_z.form-group-code .btn-get-code:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-new-page .form-group.group_z.form-group-code .btn-get-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 隐藏图标 */
.login-new-page .form-group.group_z .input-with-icon,
.login-new-page .form-group.group_z .field-icon-left {
    display: none;
}
