.auth-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    min-height: 26rem;
}

.auth-split-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
    min-height: 100%;
    background: var(--color-white);
}

.auth-stage-media {
    position: absolute;
    inset: 5%;
    z-index: 0;
    background-image: url("../../img/auth/login-forest-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-stage-shade {
    position: absolute;
    inset: 5%;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(2, 31, 27, 0.28) 0%,
        rgba(2, 31, 27, 0.62) 100%
    );
}

.auth-stage-copy {
    position: relative;
    z-index: 2;
    max-width: 28rem;
    margin: 0 5% 5%;
    padding: 2rem 2.5rem;
    color: var(--color-text-on-dark);
}

.auth-eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.auth-headline {
    margin-bottom: 0.75rem;
    font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: #f7f3ea;
}

.auth-subcopy {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    max-width: 24rem;
}

.auth-split-form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--color-white);
    padding: 2.75rem 2rem 2rem;
}

.auth-panel {
    width: 100%;
    max-width: 36rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.auth-panel-title {
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
    font-size: 2.35rem;
    font-weight: 700;
}

.auth-panel-lead {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.auth-input {
    border-color: var(--color-grey-200);
    background: var(--color-white);
    min-height: 3rem;
    font-size: 1.05rem;
    padding: 0.7rem 0.9rem;
}

.auth-input:focus {
    border-color: var(--color-accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 120, 0.18);
}

.auth-inline-link {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.auth-inline-link:hover {
    color: var(--color-accent-teal-hover);
}

.auth-submit {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1.05rem;
    text-align: center;
}

.auth-panel-foot {
    margin-top: 1.25rem;
    font-size: 1.02rem;
    color: var(--color-text-secondary);
}

/* Let the auth stage fill remaining main height down to the footer */
body:has(.auth-stage) main {
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-split-visual {
        min-height: 16rem;
        padding: 0;
    }

    .auth-split-form {
        padding: 1.75rem 1.25rem 2rem;
    }

    .auth-headline {
        font-size: 2rem;
    }
}
