/* 登录页全局样式 */
.login-body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 900px;
    height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
}
@media (max-width: 900px) {
    .login-container {
        width: 90%;
        height: auto;
        flex-direction: column;
    }
}

/* 左侧品牌区 */
.login-brand {
    width: 40%;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    padding: 50px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-logo {
    margin-bottom: 30px;
}
.brand-logo .ai-icon {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}
.brand-logo h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}
.login-brand p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}
.brand-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 150px;
    background-image: url('../images/login-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}
@media (max-width: 900px) {
    .login-brand {
        width: 100%;
        height: 200px;
        padding: 30px;
    }
}

/* 右侧登录区 */
.login-form-box {
    width: 60%;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-header {
    margin-bottom: 30px;
    text-align: center;
}
.login-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.login-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
@media (max-width: 900px) {
    .login-form-box {
        width: 100%;
        padding: 30px;
    }
}

/* 登录表单 */
.login-form {
    width: 100%;
}
.form-group {
    position: relative;
    margin-bottom: 25px;
}
.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}
.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #007bff;
    outline: none;
}
.captcha-group {
    display: flex;
    gap: 10px;
}
.captcha-group .form-control {
    flex: 1;
}
.captcha-img {
    width: 120px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}
.captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.remember-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}
.remember-label {
    color: #666;
    cursor: pointer;
}
.forgot-pwd {
    color: #007bff;
    text-decoration: none;
}
.forgot-pwd:hover {
    text-decoration: underline;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}
.login-btn:hover {
    background-color: #0069d9;
}
.login-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}
.login-footer a {
    color: #007bff;
    text-decoration: none;
}
.login-footer a:hover {
    text-decoration: underline;
}

/* 提示框 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
