body.auth-page {
    min-height: 100vh;
    background-color: #f8f5ef;
    background-image:
        linear-gradient(135deg, rgba(250, 247, 242, 0.78), rgba(238, 247, 245, 0.86)),
        url("../images/memorial-garden-background.svg");
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

body.auth-page main.container {
    max-width: 1120px;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
}

.auth-card {
    width: min(100%, 760px);
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.92);
    box-shadow: 0 28px 76px rgba(38, 59, 61, 0.14);
    backdrop-filter: blur(8px);
}

.auth-card::before {
    content: "";
    display: block;
    height: 0.28rem;
    background: linear-gradient(90deg, var(--bmp-rose), var(--bmp-gold), var(--bmp-sage));
}

.auth-logo {
    width: 70px;
    height: auto;
}

.auth-brand-name {
    color: var(--bmp-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.auth-title {
    color: var(--bmp-ink);
    font-weight: 800;
}

.auth-intro,
.auth-trust-note {
    color: var(--bmp-muted);
}

.auth-card .form-control,
.auth-card .form-select {
    border-color: rgba(47, 111, 127, 0.22);
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: rgba(47, 111, 127, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 127, 0.16);
}

.auth-card .ts-wrapper.single .ts-control {
    border-color: rgba(47, 111, 127, 0.22);
    border-radius: var(--bs-border-radius);
    min-height: calc(1.5em + 0.75rem + 2px);
}

.auth-card .ts-wrapper.focus .ts-control {
    border-color: rgba(47, 111, 127, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 127, 0.16);
}

.auth-card .ts-wrapper.is-invalid .ts-control,
.auth-card select.is-invalid + .ts-wrapper .ts-control {
    border-color: var(--bs-form-invalid-border-color);
}

.auth-card select.is-invalid + .ts-wrapper + .invalid-feedback {
    display: block;
}

.auth-card .input-group + .invalid-feedback,
.auth-card .input-group + .form-text + .invalid-feedback {
    display: none;
}

.auth-card .input-group.is-invalid + .invalid-feedback,
.auth-card .input-group.is-invalid + .form-text + .invalid-feedback {
    display: block;
}

.auth-card [data-password-toggle] {
    min-width: 4.75rem;
}

.auth-card .btn-primary {
    --bs-btn-bg: var(--bmp-sage);
    --bs-btn-border-color: var(--bmp-sage);
    --bs-btn-hover-bg: var(--bmp-sage-dark);
    --bs-btn-hover-border-color: var(--bmp-sage-dark);
    --bs-btn-active-bg: #1e4a56;
    --bs-btn-active-border-color: #1e4a56;
    border-radius: 999px;
}

.auth-card .captcha-image {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .auth-shell {
        padding-top: 0.75rem;
    }

    .auth-card .btn,
    .auth-card .auth-action-link {
        width: 100%;
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-card .input-group .btn,
    .auth-card [data-password-toggle],
    .auth-card .form-check .btn-link {
        width: auto;
    }

    .auth-card [data-password-toggle] {
        flex: 0 0 auto;
    }

    .auth-card .form-check .btn-link {
        display: inline;
        vertical-align: baseline;
    }
}

/* Auth pages: intimate memorial invitation */
body.auth-page {
    background-image:
        linear-gradient(120deg, rgba(18, 63, 70, 0.82), rgba(255, 250, 240, 0.84) 48%, rgba(232, 242, 238, 0.94)),
        repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.12) 0 1px, transparent 1px 34px),
        url("../images/memorial-garden-background.svg");
}

.auth-shell {
    min-height: min(720px, calc(100vh - 11rem));
    align-items: center;
}

.auth-card {
    position: relative;
    width: min(100%, 820px);
    border: 1px solid rgba(18, 63, 70, 0.12) !important;
    background: rgba(255, 250, 240, 0.94);
    box-shadow: 0 34px 90px rgba(10, 30, 34, 0.22);
}

.auth-card::before {
    height: 0.36rem;
}

.auth-card::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 4.5rem;
    aspect-ratio: 1;
    background: url("../images/burymypetonline-logo-mark.svg") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.auth-logo {
    width: 78px;
    filter: drop-shadow(0 10px 18px rgba(18, 63, 70, 0.16));
}

.auth-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    text-wrap: balance;
}

.auth-card .card-body {
    position: relative;
    z-index: 1;
}

.auth-card .btn-primary {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
}

/* Final paradise auth pass */
body.auth-page {
    background-color: #eaf8ff;
    background-image:
        linear-gradient(115deg, rgba(24, 62, 70, 0.72) 0%, rgba(255, 252, 240, 0.86) 46%, rgba(234, 248, 255, 0.94) 100%),
        image-set(
            url("../images/home-pet-paradise-hero.webp") type("image/webp"),
            url("../images/home-pet-paradise-hero.png") type("image/png")
        );
    background-position: center;
    background-size: cover;
}

.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 252, 240, 0.9);
    box-shadow: 0 30px 90px rgba(49, 86, 106, 0.2);
}

.auth-card::before {
    background: linear-gradient(90deg, #ff9fb2, #ffd56f, #98dcff);
}

.auth-card::after {
    display: none;
}

.auth-title {
    color: #31566a;
}

.auth-card .auth-action-link:hover,
.auth-card .auth-action-link:focus {
    color: #8f3f4d;
}
