/* Shared allauth/auth page layout */

.auth-hero {
    padding: 3rem 0;
    margin-bottom: 1rem;
    background: var(--bs-light);
}

.auth-hero__inner {
    text-align: center;
}

.auth-hero__title {
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.auth-hero__text {
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 0;
    color: var(--bs-secondary-color);
}

.auth-page {
    margin-bottom: 3rem;
}

.auth-card-wrap {
    max-width: 600px;
    margin-inline: auto;
}

.auth-card-wrap--sm {
    max-width: 500px;
}

.auth-card {
    border: 0;
    margin-bottom: 1rem;
}

.auth-card .card-body {
    padding: 1.5rem;
}

.auth-actions {
    display: grid;
    gap: 1rem;
}

.auth-actions--compact {
    gap: 0.5rem;
}

.auth-link-row {
    text-align: center;
}

.auth-muted-note {
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--bs-secondary-color);
}

/* Shared form field layout */

.auth-form-fields p,
.auth-form-fields .mb-3,
.auth-form-fields .form-group,
.auth-form-fields .field-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.auth-form-fields label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.auth-form-fields input,
.auth-form-fields select,
.auth-form-fields textarea {
    display: block;
    width: 100%;
}

.auth-form-fields input[type="checkbox"],
.auth-form-fields input[type="radio"] {
    width: auto;
}

/* Hide checkbox rows, useful for removing "Remember me" from login */
.auth-form-fields--hide-checkboxes p:has(input[type="checkbox"]),
.auth-form-fields--hide-checkboxes .mb-3:has(input[type="checkbox"]),
.auth-form-fields--hide-checkboxes .form-group:has(input[type="checkbox"]),
.auth-form-fields--hide-checkboxes .field-wrapper:has(input[type="checkbox"]) {
    display: none;
}

/* Default form help text */
.auth-form-fields .form-text,
.auth-form-fields .helptext {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* Hide Django/allauth auto password validator help text when you render your own */
.auth-form-fields--hide-help .form-text,
.auth-form-fields--hide-help .helptext,
.auth-form-fields--hide-help ul {
    display: none;
}

.errorlist.nonfield {
    list-style: none;
    padding: 1rem;
    margin: 0 0 1rem;
    border: 1px solid var(--bs-danger-border-subtle);
    border-radius: .375rem;
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
}

.errorlist.nonfield li {
    margin: 0;
}