/**
 * Allauth Account Pages Styles
 * Bootstrap 5 compatible styling for django-allauth templates
 */

/* =============================================================================
   Form Styles - Applied to Django's as_p output
   ============================================================================= */
.allauth-form p {
    margin-bottom: 1rem;
}

.allauth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
}

.allauth-form input[type="text"],
.allauth-form input[type="email"],
.allauth-form input[type="password"],
.allauth-form input[type="tel"],
.allauth-form input[type="number"],
.allauth-form input[type="url"],
.allauth-form select,
.allauth-form textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.allauth-form input:focus,
.allauth-form select:focus,
.allauth-form textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.allauth-form input:disabled,
.allauth-form select:disabled,
.allauth-form textarea:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Checkbox styling */
.allauth-form input[type="checkbox"],
.allauth-form input[type="radio"] {
    width: 1em;
    height: 1em;
    margin-right: 0.5rem;
    vertical-align: middle;
    cursor: pointer;
}

/* Help text */
.allauth-form .helptext {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* Error messages */
.allauth-form .errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.allauth-form .errorlist li {
    margin-bottom: 0.25rem;
}

/* =============================================================================
   Social Login Providers
   ============================================================================= */
.social-providers {
    margin-top: 1rem;
}

.social-providers .btn {
    margin-bottom: 0.5rem;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 576px) {
    .allauth-form input,
    .allauth-form select,
    .allauth-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
