﻿/* 1200px居中参考线（仅用于定位，可省略） */
.center-wrap {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/* 登录框样式（悬浮在幻灯片上） */
.login-box {
    position: absolute;
    top: 50%; /* 垂直居中第一步 */
    right: 0; /* 贴1200px容器右侧 */
    transform: translateY(-50%); /* 垂直居中第二步，抵消自身高度的一半 */
    width: 350px;
    background-color: rgba(255, 255, 255, 0.95); /* 半透明白色，保证可读性 */
    padding: 5px 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10; /* 确保登录框在幻灯片上层 */
    cursor:default;
}

/* 登录标题 */
.login-title {
    font-size: 20px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
}

/* 表单输入项容器 */
.form-item {
    margin-bottom: 18px;
}

    /* 输入框样式 */
    .form-item input {
        width: 100%;
        height: 45px;
        padding: 0 15px;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s ease;
    }

        /* 输入框聚焦样式 */
        .form-item input:focus {
            border-color: #3498db;
        }

/* 验证码行：验证码输入框+验证码图片/文字 */
.captcha-row {
    display: flex;
    gap: 10px;
}

    .captcha-row input {
        flex: 1;
    }

/* 验证码图片/文字区域 */
.captcha-code {
    width: 120px;
    height: 45px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none; /* 禁止选中验证码文字 */
}

/* 记住我+注册链接行 */
.remember-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

    /* 记住我复选框 */
    .remember-row input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }

    .remember-row label {
        color: #666;
        cursor: pointer;
    }

/* 注册链接 */
.register-link {
    color: #3498db;
    text-decoration: none;
}

    .register-link:hover {
        text-decoration: underline;
    }

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 45px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .login-btn:hover {
        background-color: #2980b9;
    }

.link-gap {
    margin: 0 10px;
    color: #eee;
}

.error-tip {
    color: red;
    margin: 10px 0px;
    display: none;
}

.checkbox-label {
    /* 可选：增加行高，让整体更美观 */
    line-height: 20px;
    /* 可选：调整光标样式，提升交互体验 */
    cursor: pointer;
}

    .checkbox-label input[type="checkbox"] {
        /* 关键属性：将复选框与文字的基线对齐 */
        vertical-align: middle;
        /* 可选：微调间距，让文字和复选框之间有合适的空隙 */
        margin-right: 4px;
    }


.login-btn:disabled {
    background-color: #b8d8eb;
    color: #749cb8;
    cursor: not-allowed;
    opacity: 1;
    /* 去掉hover变色 */
    pointer-events: none;
}

/* 平板/手机适配阈值 */
@media (max-width: 1240px) {
    /* 取消固定1200px宽度 */
    .center-wrap {
        width: 100%;
    }

    .login-box {
        /* 清除桌面端靠右的定位 */
        right: auto;
        left: 50%;
        top: 50%;
        /* 水平+垂直同时居中 */
        transform: translate(-50%, -50%);
        /* 宽度自适应，最大350px，左右预留边距防止贴边 */
        width: min(350px, calc(100% - 30px));
        box-sizing: border-box;
        padding: 15px 20px;
    }
}

@media (max-width: 640px) {
    .login-title {
        font-size: 18px;
    }
}