/* ============================================
   登录页面样式 - 现代化重设计
   ============================================ */

/* 基础重置 */
html, body {
    height: 100%;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ajustHeight {
    display: none;
}

/* ============================================
   顶部导航栏
   ============================================ */
.g-login-header {
    height: auto;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.m-login-header {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 500;
    color: #333;
    position: static;
}

.m-login-header .login-logo {
    font-size: 0;
    float: none;
}

.m-login-header .login-logo a {
    display: block;
}

.m-login-header .login-logo img {
    max-width: 160px;
    height: auto;
    position: static;
}

.m-login-header .line {
    display: inline-block;
    height: 28px;
    width: 1px;
    background: #e0e0e0;
    margin: 0 20px;
    vertical-align: middle;
}

/* ============================================
   登录主体区域
   ============================================ */
.g-login-wrap {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 580px;
    background: url(/static/pc/index/images/login_bg.webp) center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-width: auto;
    margin-bottom: 0;
}

/* 装饰圆形 */
.g-login-wrap::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -180px;
    right: -120px;
    pointer-events: none;
}

.g-login-wrap::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

/* ============================================
   登录卡片
   ============================================ */
.g-login-wrap .m-login-box {
    position: relative;
    left: auto;
    top: auto;
    margin-left: auto;
    margin-right: auto;
    width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px 48px 32px;
    z-index: 1;
    overflow: hidden;
}

/* 标题栏 */
.g-login-wrap .m-login-box .titlebar {
    color: #1a1a2e;
    font-size: 22px;
    font-weight: 700;
    padding: 0 0 32px 0;
    text-align: center;
    letter-spacing: 1px;
}

/* 扫码入口 */
.g-login-wrap .m-login-box .scan-entry {
    position: absolute;
    right: 0px;
    top: 0px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8e8ea0;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.g-login-wrap .m-login-box .scan-entry:hover {
    color: #4f6ef7;
}

.g-login-wrap .m-login-box .scan-entry img {
    height: auto;
    object-fit: contain;
}

.g-login-wrap .m-login-box .scan-entry img:first-of-type {
    width: 16px;
}

.g-login-wrap .m-login-box .scan-entry img:last-of-type {
    width: 42px;
}

/* 表单 */
.g-login-wrap .m-login-box .login-form {
    margin-left: 0;
}

/* 错误提示 */
.g-login-wrap .error-msg {
    font-size: 13px;
    color: #e74c3c;
    min-height: 20px;
    line-height: 20px;
    margin-bottom: 8px;
    text-align: center;
    position: static;
    width: auto;
    left: auto;
    top: auto;
}

/* 隐藏 */
.g-login-wrap .hidden {
    display: none !important;
}

/* ============================================
   输入框
   ============================================ */
.g-login-wrap .m-login-box .input-optimize {
    position: relative;
    margin-bottom: 20px;
    font-size: 12px;
}

.g-login-wrap .m-login-box .input-optimize.error input {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.g-login-wrap .m-login-box input {
    width: 100%;
    height: 46px;
    line-height: 46px;
    font-size: 15px;
    padding-left: 46px;
    padding-right: 14px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    vertical-align: middle;
    color: #333;
    background: #f8f9fb;
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
}

.g-login-wrap .m-login-box input:focus {
    border-color: #4f6ef7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.1);
}

.g-login-wrap .m-login-box input::placeholder {
    color: #bbb;
}

/* 输入框图标 */
.g-login-wrap .m-login-box .icon-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

.g-login-wrap .m-login-box .icon-deco.icon-acco {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") center no-repeat;
    background-size: 20px;
}

.g-login-wrap .m-login-box .icon-deco.icon-pass {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") center no-repeat;
    background-size: 20px;
}

.g-login-wrap .m-login-box input:focus ~ .icon-deco,
.g-login-wrap .m-login-box .input-optimize:focus-within .icon-deco {
    opacity: 1;
}

/* placeholder 模拟 */
.g-login-wrap .m-login-box .placeholder {
    position: absolute;
    top: 0;
    left: 0;
    text-indent: 46px;
    height: 46px;
    line-height: 46px;
    background: transparent;
    color: #bbb;
    font-size: 15px;
    width: 100%;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* 清除按钮 */
.g-login-wrap .m-login-box .clear-text {
    display: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 14px;
    top: 13px;
    z-index: 3;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23999'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
    background-size: 16px;
}

/* 验证码输入行 */
.g-login-wrap .m-login-box .checkcode {
    width: 97px;
    height: 34px;
    vertical-align: middle;
}

.g-login-wrap .m-login-box .checkcode-input input {
    width: 132px;
    padding-left: 14px;
    margin-right: 15px;
}

.g-login-wrap .m-login-box .checkcode-input .placeholder {
    width: 143px;
    text-indent: 14px;
}

.g-login-wrap .m-login-box .checkcode-input img {
    cursor: pointer;
}

/* ============================================
   获取验证码按钮
   ============================================ */
.g-login-wrap .m-login-box .get_code {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 100px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    font-size: 13px;
    color: #f7a934;
    background: #fff8f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    text-decoration: none;
    display: block;
}

.g-login-wrap .m-login-box .get_code:hover {
    background: #f7a934;
    color: #fff;
}

.g-login-wrap .m-login-box .get_code.disabled {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   自动登录勾选框
   ============================================ */
.g-login-wrap .m-login-box .agreement {
    margin: 4px 0 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.g-login-wrap .m-login-box .checkbox-optimize {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5dd;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.g-login-wrap .m-login-box .checkbox-optimize.active {
    border-color: #f7a934;
    background: #f7a934;
}

.g-login-wrap .m-login-box .checkbox-optimize .icon-autologin {
    display: none;
    width: 10px;
    height: 8px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -1px;
}

.g-login-wrap .m-login-box .checkbox-optimize.active .icon-autologin {
    display: block;
}

.g-login-wrap .m-login-box .agreement span {
    font-size: 13px;
    color: #888;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   登录按钮
   ============================================ */
.g-login-wrap .m-login-box .login-btn {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    background: linear-gradient(135deg, #f7a934 0%, #e8961f 100%);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 169, 52, 0.35);
}

.g-login-wrap .m-login-box .login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247, 169, 52, 0.45);
}

.g-login-wrap .m-login-box .login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(247, 169, 52, 0.3);
}

/* ============================================
   第三方登录图标
   ============================================ */
.g-login-wrap .m-login-box .social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.g-login-wrap .m-login-box .social-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f6fa;
    transition: all 0.25s;
}

.g-login-wrap .m-login-box .social-login a:hover {
    background: #eef0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.g-login-wrap .m-login-box .social-login img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ============================================
   底部链接栏
   ============================================ */
.g-login-wrap .m-login-box .bottom-bar {
    padding: 18px 0 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.g-login-wrap .m-login-box .bottom-bar a {
    font-size: 13px;
    color: #8e8ea0;
    text-decoration: none;
    transition: color 0.2s;
}

.g-login-wrap .m-login-box .bottom-bar a:hover {
    color: #4f6ef7;
    text-decoration: none;
}

.g-login-wrap .m-login-box .bottom-bar .line {
    display: inline-block;
    height: 13px;
    width: 1px;
    margin: 0;
    background: #ddd;
    vertical-align: middle;
}

/* ============================================
   扫一扫登录面板
   ============================================ */
.g-login-wrap .m-login-box.saoyisao {
    height: auto;
    min-height: 400px;
}

.g-login-wrap .m-login-box .qr-wrap {
    width: 220px;
    height: 275px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.g-login-wrap .m-login-box .qr-wrap img {
    width: 74%;
}

.g-login-wrap .m-login-box .qr-wrap p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

.g-login-wrap .m-login-box .qr-wrap p span {
    color: #4f6ef7;
    font-weight: 500;
    cursor: pointer;
}

/* ============================================
   页脚
   ============================================ */
.g-register-login-footer {
    width: 100%;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 24px 0;
    text-align: center;
    flex-shrink: 0;
    position: static !important;
    min-height: auto;
    font-size: 12px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.g-register-login-footer .g-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.g-register-login-footer .helper-list {
    margin-bottom: 12px;
    font-size: 0;
    float: none;
}

.g-register-login-footer .helper-list a {
    font-size: 13px;
    color: #8e8ea0;
    padding: 0 14px;
    border-left: 1px solid #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.g-register-login-footer .helper-list a:first-child {
    border-left: none;
}

.g-register-login-footer .helper-list a:hover {
    color: #4f6ef7;
    text-decoration: none;
}

.g-register-login-footer .helper-text {
    margin: 6px 0;
    font-size: 12px;
    color: #b0b0b8;
    line-height: 1.8;
}

.g-register-login-footer .helper-text a {
    color: #b0b0b8;
    text-decoration: none;
}

/* ============================================
   错误提示弹窗
   ============================================ */
.form-erro {
    position: fixed;
    top: 45%;
    left: 50%;
    max-width: 90%;
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .m-login-header {
        padding: 14px 20px;
        font-size: 18px;
    }
    .m-login-header .login-logo img {
        max-width: 120px;
    }
    .g-login-wrap {
        min-height: 100vh;
        padding: 20px;
    }
    .g-login-wrap .m-login-box {
        width: 100%;
        max-width: 400px;
        padding: 32px 24px 24px;
        border-radius: 14px;
    }
    .g-login-wrap .m-login-box .titlebar {
        font-size: 20px;
        padding-bottom: 24px;
    }
    .g-login-wrap .m-login-box input {
        height: 44px;
    }
    .g-login-wrap .m-login-box .login-btn {
        height: 44px;
        font-size: 16px;
    }
    .g-login-wrap .m-login-box .bottom-bar {
        padding-top: 14px;
    }
}
