body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url('img/login.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto; /* 启用垂直滚动 */
}

.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px); /* 高斯模糊效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2); /* 半透明边框 */
    margin: 20px auto; /* 上下边距，水平居中 */
    overflow-y: auto;
}

h2 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success {
    color: #33e65d;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fail {
    color: #ff3e51;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-group label {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control {
    border-radius: 10px; /* 更大的圆角 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:hover {
    border-color: #80bdff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
    transform: translateY(-2px); /* 轻微上移效果 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease; /* 与输入框相同的过渡效果 */
    color: #fff; /* 文本颜色为白色 */
}

.form-control:focus {
    border-color: #80bdff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
    transform: scale(1.05); /* 放大到原来的 1.05 倍 */
    color: #fff; /* 文本颜色为白色 */
    font-weight: bold; /* 文本加粗 */
}

.btn-primary {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border-radius: 10px; /* 更大的圆角 */
    background-color: rgba(0, 123, 255, 0.8); /* 半透明背景 */
    border: none;
    font-weight: bold;
}

/* 添加对加载动画容器的支持 */
.page-content .container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    overflow-y: auto;
}

.page-content .container.mt-5 {
    margin-top: 20px !important;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-center a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-center a:hover {
    text-decoration: underline;
}

/* 加载动画 */
#loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #fff;
}

.required {
    color: rgb(255, 78, 78);
}

/* 复选框样式 */
.form-check {
    margin-bottom: 1px;
}

.form-check-input {
    margin-right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    width: 20px;
    height: 20px;
    appearance: none;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: rgba(33, 137, 249, 0.8);
    border-color: rgba(0, 123, 255, 0.8);
    transform: scale(1.2); /* 与输入框相同的缩放效果 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease; /* 与输入框相同的过渡效果 */
}

/* 复选框悬停效果 */
.form-check-input:hover {
    border-color: #80bdff; /* 与输入框相同的边框颜色 */
    box-shadow: 0 0 5px rgba(128, 189, 255, 0.5); /* 与输入框相同的阴影效果 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease; /* 与输入框相同的过渡效果 */
}

/* 复选框旁边的文字 */
.form-check-label {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    margin-top: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
}

/* 弹窗背景 */
.modal {
    visibility: hidden; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 半透明背景 */
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0; /* 初始透明度为 0 */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* 透明度和可见性过渡效果 */
}

/* 弹窗内容 */
.modal-content {
    background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px); /* 高斯模糊效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2); /* 半透明边框 */
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9); /* 初始缩放为 0.9 */
    opacity: 0; /* 初始透明度为 0 */
    transition: transform 0.3s ease, opacity 0.3s ease; /* 缩放和透明度过渡效果 */
}

/* 弹窗展示时的样式 */
.modal.show {
    visibility: visible; /* 显示弹窗 */
    opacity: 1; /* 背景透明度为 1 */
}

.modal.show .modal-content {
    transform: scale(1); /* 弹窗内容缩放为 1 */
    opacity: 1; /* 弹窗内容透明度为 1 */
}

/* 弹窗标题 */
#modal-title {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

/* 弹窗文字 */
.modal-content p {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* 弹窗按钮 */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* 按钮间距 */
}

.modal-buttons button {
    width: 120px; /* 设置按钮宽度一致 */
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    display: block;
}

.modal-buttons .btn-primary {
    background-color: rgba(0, 123, 255, 0.8);
    color: #fff;
}

.modal-buttons .btn-primary:hover {
    background-color: rgba(0, 86, 179, 0.9);
    border-color: rgba(0, 86, 179, 0.9);
    transform: translateY(-2px);
}

.modal-buttons .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-buttons .btn-secondary {
    background-color: rgba(108, 117, 125, 0.8);
    color: #fff;
}

.modal-buttons .btn-secondary:hover {
    background-color: rgba(73, 80, 87, 0.9);
}