/* 卡片式登录页样式 - 仿LikeShop设计 */

/* Body基础样式 */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

/* 整体容器 - 默认浅灰背景 */
.login-modern-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 登录卡片 */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 左侧区域 - 400px宽度 */
.login-left-panel {
    width: 400px;
    min-width: 400px;
    background: linear-gradient(135deg, #4e8cff 0%, #3b5bdb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.login-left-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-left-title {
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
}

.login-left-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-top: 15px;
}

/* 右侧登录区域 - 自适应宽度 */
.login-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: #fff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 350px;
}

.login-form-header {
    margin-bottom: 35px;
    text-align: center;
}

.login-form-title {
    font-size: 26px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 0;
}

/* 表单样式 */
.login-modern-form .layui-form-item {
    margin-bottom: 18px;
}

.login-modern-form .layui-input {
    height: 44px;
    line-height: 44px;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
    padding: 0 15px;
    font-size: 14px;
    color: #606266;
    transition: all 0.3s;
}

.login-modern-form .layui-input:focus {
    border-color: #4e8cff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(78,140,255,0.1);
}

.login-modern-form .layui-input::placeholder {
    color: #c0c4cc;
}

/* 验证码 */
.login-code-img {
    width: 100%;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e4e7ed;
    transition: all 0.3s;
}

.login-code-img:hover {
    border-color: #4e8cff;
}

/* 登录按钮 */
.login-submit-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #4e8cff 0%, #3b5bdb 100%);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78,140,255,0.4);
}

/* 复选框 */
.login-modern-form .layui-form-checkbox[lay-skin="primary"] {
    padding-left: 24px;
}

.login-modern-form .layui-form-checkbox[lay-skin="primary"] span {
    font-size: 14px;
    color: #606266;
}

/* 链接 */
.login-link {
    color: #409eff;
    text-decoration: none;
    font-size: 14px;
}

.login-link:hover {
    color: #66b1ff;
}

/* 页脚 */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #606266;
    font-size: 13px;
    line-height: 1.6;
    z-index: 1;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.login-footer a {
    color: #4e8cff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.login-footer a:hover {
    color: #3b5bdb;
    text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .login-card {
        max-width: 750px;
        height: 500px;
    }
}

@media screen and (max-width: 768px) {
    /* 移动端背景处理 - 如果没有背景图，显示蓝色渐变 */
    body {
        background: linear-gradient(135deg, #4e8cff 0%, #3b5bdb 100%) fixed;
        background-size: cover;
        background-attachment: fixed;
    }

    .login-modern-container {
        padding: 0;
        background: transparent;
        position: relative;
        min-height: 100vh;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .login-modern-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        pointer-events: none;
        z-index: 0;
    }

    .login-card {
        height: auto;
        flex: 1;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
    }

    /* 移动端隐藏左侧图片区域 */
    .login-left-panel {
        display: none;
    }

    .login-right-panel {
        width: 100%;
        padding: 40px 20px;
        background: transparent;
    }

    .login-form-wrapper {
        max-width: 400px;
        margin: 0 auto;
        background: #fff;
        border-radius: 12px;
        padding: 40px 30px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    }

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

    .login-form-title {
        font-size: 26px;
        font-weight: 600;
        background: linear-gradient(135deg, #4e8cff 0%, #3b5bdb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .login-modern-form .layui-input {
        height: 48px;
        line-height: 48px;
        border-radius: 8px;
        border: 2px solid #e8e8e8;
        padding: 0 15px;
        font-size: 15px;
        transition: all 0.3s;
    }

    .login-modern-form .layui-input:focus {
        border-color: #4e8cff;
        box-shadow: 0 0 0 3px rgba(78,140,255,0.1);
    }

    .login-code-img {
        height: 48px;
        border-radius: 8px;
        border: 2px solid #e8e8e8;
    }

    .login-submit-btn {
        height: 48px;
        line-height: 48px;
        border-radius: 8px;
        background: linear-gradient(135deg, #4e8cff 0%, #3b5bdb 100%);
        font-size: 16px;
        font-weight: 600;
        margin-top: 10px;
    }

    .login-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(78,140,255,0.4);
    }

    .login-footer {
        position: relative;
        margin-top: 0;
        padding: 20px;
        background: rgba(59, 91, 219, 0.4);
        color: #fff;
        text-align: center;
        z-index: 2;
        font-size: 13px;
        line-height: 1.6;
    }

    .login-footer a {
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.6);
        transition: all 0.3s;
        font-weight: 500;
    }

    .login-footer a:hover {
        border-bottom-color: #fff;
        opacity: 0.9;
    }
}

@media screen and (max-width: 480px) {
    .login-right-panel {
        padding: 30px 15px;
    }

    .login-form-wrapper {
        max-width: 100%;
        padding: 35px 25px;
        border-radius: 12px;
    }

    .login-form-title {
        font-size: 24px;
    }

    .login-modern-form .layui-input,
    .login-code-img,
    .login-submit-btn {
        height: 46px;
        line-height: 46px;
    }
}

