/* 身份验证页面样式 */

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-header p {
    color: #666;
    font-size: 16px;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.error-message {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.error-message.show {
    display: block;
}

.btn-auth {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-auth:hover {
    background-color: #45a049;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #4A90E2;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 注册福利列表 */
.benefits-list {
    padding-left: 20px;
    margin-top: 15px;
}

.benefits-list li {
    margin-bottom: 10px;
    color: #555;
}

.benefits-list i {
    color: #4CAF50;
    margin-right: 10px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #555;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e1e1e1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 密码强度计 */
.password-strength-meter {
    height: 5px;
    background-color: #f1f1f1;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: #ddd;
    transition: width 0.3s, background-color 0.3s;
}

#password-strength-text, #password-match-text {
    font-size: 14px;
    margin-top: 8px;
    display: block;
}

/* 密码输入框和显示/隐藏按钮 */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.password-toggle:hover {
    color: #333;
}

.password-field .form-control {
    padding-right: 40px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
}

/* 登录和注册福利区域 */
.login-benefits,
.register-benefits {
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1.2rem;
}

.login-benefits h3,
.register-benefits h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.login-benefits ul,
.register-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-benefits li,
.register-benefits li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #555;
}

.login-benefits i,
.register-benefits i {
    color: #4a90e2;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Cloudflare Turnstile 样式 */
.cf-turnstile {
    margin: 1rem 0;
} 