/* 认证页面（登录/注册）专用样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #f9f3f3;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

header {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffb6c1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #e91e63;
    margin-bottom: 5px;
    font-size: 22px;
}

/* 登录和注册页面样式 */
.auth-container {
    max-width: 400px;
    margin: 15px auto;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 12px;
    color: #e91e63;
    font-size: 18px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e91e63;
}

.alert {
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #ffebee;
    color: #f44336;
    border: 1px solid #ef9a9a;
    font-size: 12px;
}

.btn-auth {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-auth:hover {
    background-color: #c2185b;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
}

.auth-link a {
    color: #e91e63;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* 头像选择样式 */
.avatar-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.avatar-option {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.avatar-option label {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option input[type="radio"]:checked + label {
    border-color: #e91e63;
    box-shadow: 0 0 4px rgba(233, 30, 99, 0.5);
}

.avatar-option:hover label {
    transform: scale(1.05);
}

footer {
    text-align: center;
    margin-top: 15px;
    padding: 8px;
    background-color: #ffb6c1;
    color: #e91e63;
    font-size: 12px;
    border-radius: 8px;
}