/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* 居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    margin-top: 10px;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-body input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-body .error {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    align-items: end;
    justify-content: center; /* 初步居中对齐按钮 */
    margin-top: 10px;
    position: relative; /* 为绝对定位提供参考上下文 */
}

.modal-footer .reset-password {
    position: absolute; /* 绝对定位 */
    right: 10px; /* 距离右侧的间距 */
    font-size: 14px;
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
}

.modal-footer .reset-password:hover {
    text-decoration: underline;
}

.modal-footer button {
    margin: 0 10px; /* 按钮之间的水平间距 */
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.modal-footer .cancel {
    background-color: #f44336;
    color: white;
}

.modal-footer .cancel:hover {
    background-color: #e31b0c;
}

.modal-footer .register {
    background-color: #4CAF50;
    color: white;
}

.modal-footer .register:hover {
    background-color: #45a049;
}

.modal-footer .login {
    background-color: #4CAF50;
    color: white;
}

.modal-footer .login:hover {
    background-color: #45a049;
}

