/* login.css */

body {
    background-color: #FAFAFA; /* 你可以选择任意颜色 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0px !important;
}

.login-page,
.register-page {
    background-color: #f9f9f9; /* 也可以在这里定义特定页面的背景颜色 */
}

.box {
    margin-top: 15%;
}

.login-logo {
    display: flex;
    align-items: center;
    margin-left: 0px;
}

.login-logo img {
    height: 30px;
    margin-right: 5px;
}


.box-body {
    padding: 20px;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.register-link {
    text-align: right;
    margin-top: 20px;
}

.register-link a {
    color: #3c8dbc;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}


.container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    margin-top: -100px; /* 可以调整此值以稍微靠上 */

}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-label label {
    display: inline-block;
}


.btn-transparent-red {
    background-color: transparent;
    border-color: red;
    color: red;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.btn-transparent-red:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
}

.register-btn {
    background-color: red;
    border-color: red;
}

.register-btn:hover {
    background-color: rgba(255, 0, 0, 0.8); /* 鼠标悬停时的背景颜色 */
    border-color: rgba(255, 0, 0, 0.8);     /* 鼠标悬停时的边框颜色 */
}

.toast-container {
    position: absolute; /* 使用绝对定位 */
    bottom: 0;
    right: 0;
    padding: 3px;
    z-index: 1050; /* 确保 Toast 在其他元素之上 */
}

/* 初始隐藏状态 */
.toast-container {
    display: none;
}



/* 将 .input-group-append 定位在输入框的右侧 */
.input-group-append {
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 使按钮垂直居中 */
    position: absolute; /* 相对于 .input-group 定位 */
    right: 0; /* 靠右对齐 */
    top: 0; /* 顶部对齐 */
    bottom: 0; /* 底部对齐 */
    padding: 0; /* 移除默认的内边距 */
    pointer-events: none; /* 禁止点击穿透 */
}

/* 为输入框留出空间 */
.form-control {
    padding-right: 30px; /* 给眼睛图标留出空间 */
    box-sizing: border-box; /* 包括 padding 和 border 在元素的总宽度内 */
}

/* 移除按钮的默认边距 */
.input-group-append button {
    margin: 0; /* 移除默认的边距 */
    pointer-events: auto; /* 使按钮可点击 */
}

/* 确保 .links-container 是一个弹性容器 */
.links-container {
    display: flex; /* 使用 Flexbox 布局 */
    flex-direction: column; /* 子元素垂直排列 */
    align-items: center; /* 子元素在垂直方向上居中对齐 */
    width: 100%; /* 占据100%的宽度 */
    margin-top: 10px; /* 上方的边距 */
}

/* 内部容器 */
.links-container > div {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: space-between; /* 子元素在水平方向上两端对齐 */
    width: 100%; /* 占据100%的宽度 */
    margin-top: 10px; /* 上方的边距 */
    max-width: 100%; /* 确保内部容器不超过外部容器宽度 */
}

/* 设置链接的样式 */
.links-container a {
    display: inline; /* 使链接成为行内块元素 */
    margin: 0; /* 清除默认边距 */
}

/* 登录按钮的样式 */
.register-btn {
    width: 100%; /* 确保登录按钮占据100%的宽度 */
    text-align: center; /* 文字居中对齐 */
}

/* 密码输入框样式 */
.password-input {
    position: relative;
}

/* password-input的相邻 */
.password-input + .input-group-append button i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 3;
}

/* 菜单栏移除外边框 */
.card {
    background-color: #f8f9fa; /* Bootstrap默认灰色 */
    border: none;
}

/* 图形验证码弹窗样式 */
.image-captcha-container {
    text-align: center;
}

.captcha-content {
    padding: 10px 0;
}

.captcha-image-container {
    position: relative;
    display: inline-block;
}

.captcha-image {
    width: 120px;
    height: 40px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.captcha-refresh {
    margin-top: 10px;
}

.captcha-input-container {
    margin-top: 15px;
}

.captcha-input-container input {
    text-align: center;
    letter-spacing: 2px;
}

.captcha-hint-text {
    font-size: var(--text-xs);
}

