/* 登录页面特定样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.login-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: #4a90e2;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.error-message {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.form-actions {
    text-align: center;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3570b2;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #4a90e2;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 社交登录部分 */
.social-login {
    margin-top: 25px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
    color: #666;
}

.socialaccount_providers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.socialaccount_providers li {
    margin-bottom: 10px;
}

.socialaccount_providers a {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.socialaccount_providers a:hover {
    background-color: #e0e0e0;
}

/* 消息样式 */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
}

/* 统一 Django 默认 helptext 的字号与颜色 */
.helptext,
.helptext li {
  font-size: 0.75rem;   /* Tailwind 的 text-xs */
  line-height: 1.1rem;
  color: #6B7280;       /* Tailwind 的 text-gray-500 */
}
.helptext {
  margin-top: 0.25rem;  /* mt-1 */
}