/* Login page styles */

/* Full page layout */
body.login-page {
    background: url("../../img/login-bg.png") no-repeat center center fixed !important;
    background-size: cover !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Container: left-right split */
.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 1400px;
    height: 1050px;
    box-sizing: border-box;
}

.logo-img {
    width: 201px;
    height: 24px;
}
.split-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.desc-img {
    width: 447px;
    height: 279px;
}

.login-panel {
    box-sizing: border-box;
    width: 360px;
    height: 485px;
    padding: 40px;
    background: #FFFFFF;
    box-shadow: 0px 12px 40px 0px rgba(0,0,0,0.06);
    border-radius: 16px;
}
.input-icon {
    width: 24px;
    height: 24px;
}
/* 顶部标签切换区 */
.tab-group {
    display: flex;
    margin-bottom: 40px;
}

.tab-item {
    font-weight: 600;
    font-size: 18px;
    color: #909399;
    line-height: 25px;
    text-align: left;
    font-style: normal;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #303133;
    border-bottom-color: #007BFF;; /* 蓝色下划线 */
}

.tab-divider {
    margin: 0 12px;
    color: #ccc;
}
/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 11px;
    height: 20px;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    text-align: left;
    font-style: normal;
}

/* 输入框容器（含图标） */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #DCDFE6;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #007BFF; /* 聚焦时边框变蓝 */
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #999;
}

.form-input {
    width: 100%;
    padding: 10px 12px 10px 40px; /* 左内边距给图标留空间 */
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.form-input::placeholder {
    color: #bbb;
}
/* 覆盖浏览器自动填充时的默认背景色 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 密码框右侧“眼睛”图标 */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #999;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.password-toggle:hover {
    fill: #666;
}

/* 辅助选项区（记住账号、忘记密码） */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 20px;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    text-align: left;
    font-style: normal;
}

.checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    background: #FFFFFF;
    border-radius: 2px;
    border: 1px solid #C0C4CC;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #007BFF;
    border-color: #007BFF;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 12px;
    color: #fff;
    border: none;
    font-size: 16px;
    height: 48px;
    background: linear-gradient( 315deg, #409EFF 0%, #007BFF 100%);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 24"/27" FHD (1920×1080) */
@media (max-width: 1920px) {
    .login-container {
        width: 1400px;
        height: 800px;
    }
}

/* Ultrawide FHD height (e.g. 2560×1080, 3440×1080) */
@media (min-width: 1921px) and (max-height: 1080px) {
    .login-container {
        width: 1400px;
        height: 800px;
    }
}

/* 1680×1050 / 1600×900 */
@media (max-width: 1680px) {
    .login-container {
        width: 1300px;
        height: 720px;
    }
}

/* 1440×900 */
@media (max-width: 1440px) {
    .login-container {
        width: 1150px;
        height: 640px;
    }
}

/* ≤1280 (small laptop) */
@media (max-width: 1280px) {
    .login-container {
        width: 1020px;
        height: 600px;
    }
}
