/**
 * Split-screen auth (login / register / password) — brand colors:
 * #E84A1A orange, #C4336E magenta, #FAF0EB cream, #2B1F1A ink
 */

:root {
    --auth-orange: #e84a1a;
    --auth-magenta: #c4336e;
    --auth-cream: #faf0eb;
    --auth-ink: #2b1f1a;
    --auth-cream-deep: #efe8e2;
    --auth-muted: rgba(43, 31, 26, 0.62);
}

body:has(.auth-split) {
    background-color: #efe8e0 !important;
}

.auth-split {
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--auth-ink);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    box-sizing: border-box;
    background: linear-gradient(165deg, #e8dfd6 0%, var(--auth-cream) 42%, #f5ebe3 100%);
}

/* Centered card containing the two-column split */
.auth-split__card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--auth-cream);
    box-shadow:
        0 4px 6px rgba(43, 31, 26, 0.04),
        0 22px 48px rgba(43, 31, 26, 0.12);
    border: 1px solid rgba(43, 31, 26, 0.08);
    align-items: stretch;
}

.auth-split--register .auth-split__card {
    max-width: 1000px;
}

@media (min-width: 992px) {
    .auth-split__card {
        min-height: min(520px, calc(100dvh - 2.5rem));
        max-height: calc(100dvh - 2.5rem);
    }
}

/* Equal-height columns inside the card */
.auth-split__card > [class*="col-"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Brand column: carousel fills column height */
.auth-brand-carousel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.auth-brand-carousel__inner {
    min-height: 0;
}

.auth-brand-carousel .carousel-item {
    min-height: 100%;
}

.auth-brand-carousel__indicators {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    z-index: 4;
    display: flex;
    gap: 0.4rem;
    list-style: none;
}

.auth-brand-carousel__indicators [type="button"] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.auth-brand-carousel__indicators [type="button"].active {
    background: var(--auth-cream);
    transform: scale(1.2);
}

.auth-brand-carousel__indicators [type="button"]:focus-visible {
    outline: 2px solid var(--auth-cream);
    outline-offset: 2px;
}

.auth-split__card .auth-split__form-col {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.auth-split__card .auth-split__form-inner {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
}

.auth-brand-panel {
    background: var(--auth-orange);
    color: #fff;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2.75rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.auth-brand-panel--slide-impact {
    background: var(--auth-magenta);
    color: #fff;
    padding: 2rem 1.25rem 2.5rem;
}

.auth-brand-panel__impact-wrap {
    max-width: 16rem;
}

.auth-brand-panel__impact-line {
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.auth-brand-panel__impact-sub {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.92;
}

.auth-brand-panel__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    max-width: 100%;
    margin: 0;
    width: 100%;
    min-height: 100%;
}

@media (min-width: 992px) {
    .auth-brand-panel__inner {
        max-width: 17rem;
    }
}

.auth-brand-panel__top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-brand-panel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-cream);
    margin-bottom: 0.25rem;
}

.auth-brand-panel__chain {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-brand-panel__by {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.92;
}

.auth-brand-panel__middle {
    margin: 2.5rem 0;
}

.auth-brand-panel__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 1rem;
    opacity: 0.95;
}

.auth-brand-panel__headline {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    color: var(--auth-ink);
}

.auth-brand-panel__bottom {
    margin-top: auto;
    padding-top: 1.5rem;
}

.auth-brand-panel__rule {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    margin: 0 0 1.25rem;
}

.auth-brand-panel__tagline {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.auth-brand-panel__sub {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    opacity: 0.92;
}

/* Form column — form block centered horizontally */
.auth-split__form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100%;
    background: var(--auth-cream);
}

.auth-split__form-inner {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem clamp(1rem, 4vw, 1.75rem) 2rem;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .auth-split__form-col {
        align-items: center;
        justify-content: center;
        padding-left: clamp(1rem, 2.5vw, 2rem);
        padding-right: clamp(1rem, 2.5vw, 2rem);
    }

    .auth-split__form-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        max-width: min(26rem, 100%);
    }

    .auth-split--register .auth-split__form-inner {
        max-width: min(32rem, 100%);
    }
}

.auth-split__kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 0.65rem;
}

.auth-split__kicker--orange {
    color: var(--auth-orange);
}

.auth-split__kicker--magenta {
    color: var(--auth-magenta);
}

.auth-split__title {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--auth-ink);
    margin: 0 0 0.75rem;
    line-height: 1.1;
}

.auth-split__lead {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--auth-muted);
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

.auth-split__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auth-ink);
    margin-bottom: 0.45rem;
}

.auth-split__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.auth-split__label-row .auth-split__label {
    margin-bottom: 0;
}

.auth-split__link {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.auth-split__link--orange {
    color: var(--auth-orange);
}

.auth-split__link--orange:hover {
    color: #c73d15;
    text-decoration: underline;
}

.auth-split__link--magenta {
    color: var(--auth-magenta);
}

.auth-split__link--magenta:hover {
    color: #a32959;
    text-decoration: underline;
}

.auth-split .form-control,
.auth-split .form-select {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--auth-ink);
    background: var(--auth-cream);
    border: 1px solid rgba(43, 31, 26, 0.12);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    min-height: 2.75rem;
}

.auth-split .form-control::placeholder {
    color: rgba(43, 31, 26, 0.38);
}

.auth-split .form-control:focus,
.auth-split .form-select:focus {
    border-color: rgba(196, 51, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(196, 51, 110, 0.12);
    outline: 0;
}

.auth-split--magenta .form-control:focus,
.auth-split--magenta .form-select:focus {
    border-color: rgba(196, 51, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(196, 51, 110, 0.12);
    outline: 0;
}

.auth-split .form-check-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--auth-muted);
}

.auth-split .form-check-input:checked {
    background-color: var(--auth-orange);
    border-color: var(--auth-orange);
}

.auth-split--magenta .form-check-input:checked {
    background-color: var(--auth-magenta);
    border-color: var(--auth-magenta);
}

.auth-split__btn-primary {
    display: block;
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 1rem;
    min-height: 3rem;
    border-radius: 10px;
    border: none;
    margin-top: 0.25rem;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.auth-split__btn-primary--neutral {
    background: var(--auth-cream-deep);
    color: var(--auth-ink);
}

.auth-split__btn-primary--neutral:hover {
    background: #e5ddd4;
    color: var(--auth-ink);
}

.auth-split__btn-primary--orange {
    background: var(--auth-orange);
    color: #fff;
}

.auth-split__btn-primary--orange:hover {
    background: #c73d15;
    color: #fff;
}

.auth-split__btn-primary--magenta {
    background: var(--auth-magenta);
    color: #fff;
}

.auth-split__btn-primary--magenta:hover {
    background: #a32959;
    color: #fff;
}

.auth-split__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    color: var(--auth-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-split__divider::before,
.auth-split__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(43, 31, 26, 0.15);
}

.auth-split__footer-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--auth-muted);
}

.auth-split__footer-note a {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.auth-split__hint {
    font-size: 0.8125rem;
    color: var(--auth-muted);
    line-height: 1.45;
    margin: 0 0 1rem;
}

.auth-split .alert {
    border-radius: 10px;
    font-size: 0.875rem;
}

.auth-split .alert-danger {
    background: rgba(196, 51, 110, 0.08);
    border: 1px solid rgba(196, 51, 110, 0.25);
    color: var(--auth-ink);
}

.auth-split .alert-success {
    background: rgba(232, 74, 26, 0.08);
    border: 1px solid rgba(232, 74, 26, 0.22);
    color: var(--auth-ink);
}

.auth-split .alert-warning {
    background: rgba(232, 74, 26, 0.06);
    border: 1px solid rgba(232, 74, 26, 0.2);
    color: var(--auth-ink);
}

.auth-split__password-hint {
    display: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(43, 31, 26, 0.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.auth-split .password-addon {
    color: var(--auth-muted) !important;
    padding: 0.65rem 0.75rem !important;
}

.auth-split .password-addon:hover {
    color: var(--auth-ink) !important;
}

.auth-split__password-hint h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--auth-ink);
    margin: 0 0 0.5rem;
}

.auth-split__password-hint p {
    font-size: 0.75rem;
    margin: 0 0 0.35rem;
    color: var(--auth-muted);
}

.auth-split__password-hint p.valid {
    color: #1f7a4a;
}

.auth-split__password-hint p.invalid {
    color: var(--auth-muted);
}

.auth-split__legal {
    font-size: 0.75rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-split__legal a {
    font-weight: 600;
    color: var(--auth-magenta);
}

/* Mobile & small tablets: stack brand, comfortable tap targets, safe areas */
@media (max-width: 991.98px) {
    body:has(.auth-split) {
        background-color: var(--auth-cream) !important;
    }

    .auth-split {
        align-items: flex-start;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        background: var(--auth-cream);
    }

    .auth-split__card {
        border-radius: 16px;
        max-height: none;
        min-height: 0 !important;
        box-shadow: 0 8px 28px rgba(43, 31, 26, 0.08);
    }

    .auth-brand-panel {
        min-height: auto;
        height: auto;
        padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
    }

    .auth-brand-panel__inner {
        min-height: 0;
        gap: 1rem;
        flex-direction: column;
    }

    .auth-brand-panel__middle {
        margin: 0.5rem 0 0;
    }

    .auth-brand-panel__headline {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .auth-brand-panel__bottom {
        padding-top: 1rem;
        margin-top: 0;
    }

    .auth-brand-carousel {
        min-height: 260px;
    }

    .auth-brand-carousel .carousel-item {
        min-height: 260px;
    }

    .auth-split__form-col {
        min-height: auto;
        height: auto;
        align-items: center;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .auth-split__form-inner {
        max-width: 100%;
        max-height: none;
        overflow: visible;
        margin: 0 auto;
        padding: 1.25rem max(1rem, env(safe-area-inset-right)) 1.75rem max(1rem, env(safe-area-inset-left));
    }

    .auth-split__title {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .auth-split__lead {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .auth-split__label-row {
        flex-wrap: wrap;
    }

    .auth-split__divider {
        margin: 1.5rem 0 0.75rem;
    }

    .auth-split .password-addon {
        min-width: 2.75rem;
        min-height: 2.75rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-panel__chain {
        font-size: 0.75rem;
    }

    .auth-brand-panel__by {
        font-size: 0.625rem;
    }
}

/* ----- Full-page onboarding: edge-to-edge split, no centered card ----- */
body:has(.auth-onboarding-full) {
    background-color: #efe8e0 !important;
}

.auth-onboarding-full {
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--auth-cream);
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--auth-ink);
}

.auth-onboarding-full__grid {
    min-height: 100dvh;
    margin: 0;
    align-items: stretch;
}

/* Brand column fills at least the viewport; stretches with the row so no cream gap below slides */
.auth-onboarding-full__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 48dvh;
}

.auth-onboarding-full__brand .auth-brand-carousel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
}

.auth-onboarding-full__brand .auth-brand-carousel__inner.carousel-inner {
    flex: 1 1 auto;
    min-height: 100%;
    width: 100%;
}

.auth-onboarding-full__brand .carousel-item {
    min-height: 100%;
}

.auth-onboarding-full__brand .carousel-item .auth-brand-panel {
    min-height: 100%;
}

@media (min-width: 992px) {
    .auth-onboarding-full__brand {
        min-height: 100dvh;
        position: sticky;
        top: 0;
    }

    .auth-onboarding-full__brand .auth-brand-carousel,
    .auth-onboarding-full__brand .auth-brand-carousel__inner.carousel-inner,
    .auth-onboarding-full__brand .carousel-item {
        min-height: 100%;
    }
}

.auth-onboarding-full__main {
    background: var(--auth-cream);
    min-height: 0;
}

@media (min-width: 992px) {
    .auth-onboarding-full__main {
        min-height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.auth-onboarding-full__inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: max(1.25rem, env(safe-area-inset-top)) clamp(1rem, 3vw, 2.5rem) max(2rem, env(safe-area-inset-bottom));
}

.auth-onboarding-full__homelink {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--auth-magenta);
}

.auth-onboarding-full__homelink:hover {
    color: #a32959;
}

.auth-onboarding-full__section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--auth-magenta);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.auth-onboarding-full__section-title:first-of-type {
    margin-top: 0;
}

.auth-onboarding-full .form-label,
.auth-onboarding-full label:not(.form-check-label) {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-ink);
}

.auth-onboarding-full .form-control,
.auth-onboarding-full .form-select,
.auth-onboarding-full select.form-control {
    border-radius: 10px;
    border: 1px solid rgba(43, 31, 26, 0.12);
    font-family: "Poppins", sans-serif;
}

.auth-onboarding-full .form-control:focus,
.auth-onboarding-full .form-select:focus,
.auth-onboarding-full select.form-control:focus {
    border-color: rgba(196, 51, 110, 0.45);
    box-shadow: 0 0 0 3px rgba(196, 51, 110, 0.12);
}

.auth-onboarding-full .btn-danger {
    background: var(--auth-cream);
    color: var(--auth-magenta);
    border: 1px solid rgba(196, 51, 110, 0.45);
    border-radius: 10px;
    font-weight: 600;
}

.auth-onboarding-full .btn-danger:hover {
    background: rgba(196, 51, 110, 0.08);
    color: #a32959;
}
