/* Production login layout.
   Responsive switching is mobile-first and owned by Bootstrap 6: the markup
   carries `d-block lg:d-grid` / `d-none lg:d-flex` plus the `lg:` alignment
   overrides, so the framework's own breakpoint map (`lg` = 1024px per the v6
   docs) is the single source of truth. Nothing here may name a viewport
   width -- media queries cannot read CSS variables, so any pixel we wrote
   would be a second copy of the framework's value waiting to drift (that is
   exactly how the 992px / 1024px offset bug happened). This file holds only
   breakpoint-independent tokens; stepped spacing uses `clamp()`. */
.redesign-stage {
    /* Reserve the language-footer row below the stage so the centered card and
       the muted footer still fit one viewport without a scrollbar. */
    min-height: calc(100vh - 5.5rem);
    padding: clamp(1rem, 0.4rem + 3vw, 2.5rem) 0 2.5rem;
}

.redesign-split {
    max-width: 980px;
    grid-template-columns: minmax(420px, 46%) 1fr;
    border-radius: 1.25rem;
}

.redesign-form-panel {
    padding: clamp(1.5rem, 0.6rem + 3.75vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
}

.redesign-brand {
    gap: 0.625rem;
    width: fit-content;
    color: var(--bs-heading-color, var(--uf-text-1));
    font-size: 1.125rem;
}

.redesign-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
}

.redesign-brand-mark-dark {
    background: var(--uf-primary);
}

/* The body fills the height below the top-pinned brand and centers its
   content; the padding keeps the designed brand gap when space runs out. */
.redesign-panel-body {
    padding-top: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
}

.redesign-auth-controls {
    max-width: 360px;
}

.auth-method-panel:not(.d-none) {
    animation: auth-method-in 160ms ease-out;
}

@keyframes auth-method-in {
    from {
        opacity: 0;
        transform: translateX(0.4rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-method-panel:not(.d-none) {
        animation: none;
    }
}

.redesign-visual-calm {
    /* Gradient stops are kit-owned (--uf-auth-visual): monochrome charcoal
       in light, neutral dark neutrals in dark. */
    background: var(--uf-auth-visual);
}

.visual-orbit {
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.visual-orbit-one {
    width: 26rem;
    height: 26rem;
    top: -8rem;
    right: -9rem;
}

.visual-orbit-two {
    width: 17rem;
    height: 17rem;
    top: 3rem;
    right: 1rem;
}

.visual-caption {
    max-width: 24rem;
}

.redesign-two {
    background: var(--uf-auth-bg);
}

/* Muted page-bottom utility row holding the display-language select. */
.redesign-language-footer {
    padding: 0.75rem 1rem;
}

.redesign-language-footer .form-select {
    color: var(--uf-text-2);
    background-color: transparent;
    border-color: var(--uf-border);
}

.redesign-language-footer .form-select:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}
