/* ========== 登录页样式 - 方案B: 左侧品牌区 + 右侧登录区 ========== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/login-background.jpg) no-repeat center fixed;
    background-size: cover;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ========== 外层容器 ========== */
.login-wrapper {
    width: 100%;
    max-width: 960px;
    padding: 20px;
}

/* ========== 登录卡片主体 ========== */
.login-container {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #fff;
    min-height: 480px;
}

/* ========== 左侧品牌区 ========== */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* 左侧装饰圆形 */
.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid rgba(255, 255, 255, 0.04);
    bottom: -60px;
    left: -60px;
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo {
    margin: 0 auto 20px;
}

.brand-logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.brand-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
}

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.brand-features {
    text-align: left;
    display: inline-block;
}

.feature-item {
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-item i {
    margin-right: 8px;
    color: #5cb85c;
}

/* ========== 右侧登录区 ========== */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fbfd;
}

.login-form-wrapper {
    width: 100%;
    max-width: 340px;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    text-align: center;
}

.login-subtitle {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-bottom: 28px;
}

/* ========== 输入框 ========== */
.login-form-wrapper .form-group {
    margin-bottom: 18px;
}

.login-form-wrapper .input-group {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.login-form-wrapper .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(42,82,152,.10);
}

.login-form-wrapper .input-group-addon {
    background: #fafbfc;
    border: 1px solid #dde1e8;
    border-right: none;
    color: #8899aa;
    min-width: 44px;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.login-form-wrapper .input-group:focus-within .input-group-addon {
    border-color: #2a5298;
    color: #2a5298;
    background: #f3f7fd;
}

.login-form-wrapper .input-group-addon:first-child {
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.login-form-wrapper .input-group-addon:last-child {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.login-form-wrapper .form-control {
    height: 42px;
    border: 1px solid #dde1e8;
    border-left: none;
    font-size: 13px;
    box-shadow: none;
    transition: border-color 0.3s;
}

.login-form-wrapper .form-control:focus {
    border-color: #2a5298; 
    box-shadow: none;
}

/* 密码显隐按钮 */
.pwd-toggle {
    background: transparent !important;
    border-color: #e0e3e9 !important;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    padding: 6px 10px !important;
    font-size: 12px;
    user-select: none;
}

.pwd-toggle:hover {
    background: #f0f2f7 !important;
    color: #2a5298;
}

/* 密码显隐图标 */
.pwd-icon {
    color: #8899aa;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

/* 验证码图片 */
.imgcode {
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e3e9;
}

/* ========== 记住我 ========== */
.remember-label {
    font-weight: normal;
    font-size: 13px;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.remember-checkbox {
    margin: 0 6px 0 0;
    cursor: pointer;
}

/* ========== 登录按钮 ========== */
.btn-login {
    height: 44px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 4px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2a5298, #3a6bd0);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
    color: #fff;
}

.btn-login:active {
    transform: scale(0.98);
}

/* ========== 底部版权 ========== */
.login-footer {
    text-align: center;
    padding: 18px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ========== validate 错误提示 ========== */
label.error {
    color: #e74c3c;
    font-size: 12px;
    font-weight: normal;
    display: block;
    margin-top: 4px;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 30px 20px;
    }

    .login-left::before,
    .login-left::after {
        display: none;
    }

    .brand-logo img {
        max-width: 140px;
    }

    .brand-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .brand-desc {
        font-size: 12px;
        margin-bottom: 16px;
        letter-spacing: 2px;
    }

    .brand-features {
        display: none;
    }

    .login-right {
        padding: 30px 24px;
    }

    .login-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 420px) {
    .login-wrapper {
        padding: 10px;
    }

    .login-container {
        border-radius: 6px;
    }

    .login-right {
        padding: 24px 18px;
    }
}
