body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
a {text-decoration: none;}

/* 通用表单样式 */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}
.form-container h2 {
    margin-bottom: 20px;
    text-align: center;
}
.form-container input[type=text], 
.form-container input[type=password], 
.form-container input[type=email],
.form-container input[type=number],
.modal input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-container button, .modal button {
    width: 100%;
    padding: 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.form-container button:hover, .modal button:hover {
    background-color: #4cae4c;
}

.error-message {
    color: red;
    font-size: 0.9em;
}
.success-message {
    color: green;
    font-size: 0.9em;
}

#loading {
    display: none;
    color: blue;
}

/* 特定于user_login页面表单的样式 */
.captcha-image {
    margin-top: 10px;
}
.captcha-refresh {
    cursor: pointer;
    color: blue;
}
.forgot-password-link {
    margin-top: 10px;
    color: blue;
}
/* 特定于user_register页面表单的样式 */

/* 特定于user_forgot_password页面表单的样式 */

/* 特定于user_reset_password页面表单的样式 */
/* Basic modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}