/* Shared layout-only styling for the four login design previews. */
.redesign-page {
    min-height: 100vh;
    background: #f3f6fb;
    color: var(--bs-body-color);
}

.redesign-stage {
    min-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.redesign-shell,
.redesign-compact {
    box-shadow: 0 1.25rem 3rem rgba(19, 32, 56, 0.1);
}

.redesign-split {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(420px, 46%) 1fr;
    border-radius: 1.25rem;
}

.redesign-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(2rem, 4vw, 3.5rem);
    background: #fff;
}

.redesign-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: fit-content;
    color: var(--bs-heading-color, #0b0f19);
    font-size: 1.125rem;
    font-weight: 600;
}

.redesign-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle, #eef2ff);
    font-size: 1.35rem;
}

.redesign-brand-mark-dark {
    color: #fff;
    background: #111827;
}

.redesign-brand-mark-google {
    color: #1967d2;
    background: #e8f0fe;
}

.redesign-copy {
    margin-top: 3.75rem;
    padding-top: 0;
}

.redesign-auth-controls {
    width: 100%;
    max-width: 360px;
    margin-top: 1rem;
}

.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-form-panel .redesign-auth-controls {
    margin-bottom: 0;
}

.redesign-visual {
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 3rem;
}

.redesign-visual-calm {
    background: linear-gradient(145deg, #3157d5 0%, #6b56d9 55%, #34a6c8 100%);
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
}

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

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

.visual-lock-card {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: min(78%, 21rem);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1rem 2rem rgba(27, 33, 73, 0.18);
}

.visual-lock-card .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    font-size: 1.4rem;
}

.visual-lock-card div {
    display: flex;
    flex-direction: column;
}

.visual-lock-card span {
    color: var(--bs-secondary-color, #667085);
    font-size: 0.8125rem;
}

.visual-caption {
    position: relative;
    z-index: 2;
    max-width: 24rem;
}

/* Concept 2 and production: structured left panel with the calm visual. */
.redesign-two {
    background: #f7f4ef;
}

/* Concept 3: wide, low-density workspace card. */
.redesign-three {
    background: #f1f5f9;
}

.redesign-wide {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 1.5rem;
}

.redesign-wide-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 18rem;
    gap: 2.25rem;
}

.redesign-wide-actions {
    display: flex;
    align-items: center;
}

.redesign-wide-actions .redesign-auth-controls {
    max-width: 360px;
    margin: 0 auto;
}

.redesign-wide-footer {
    width: 100%;
    max-width: 900px;
    margin: 1.25rem auto 0;
    padding-inline: 1rem;
}

/* Concept 4: compact evolution of the current centered login. */
.redesign-four {
    background:
        radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.12), transparent 34rem),
        #f5f7fb;
}

.redesign-compact {
    position: relative;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    border-radius: 1.25rem;
}

.redesign-compact-topline {
    height: 0.25rem;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
}

.redesign-compact .redesign-auth-controls {
    max-width: 360px;
    margin-inline: auto;
}

.redesign-trust-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--bs-secondary-color, #667085);
    font-size: 0.75rem;
}

.redesign-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.redesign-version {
    position: fixed;
    right: 1rem;
    bottom: 0.75rem;
    color: #8490a5;
    font-size: 0.75rem;
}

@media (max-width: 991.98px) {
    .redesign-split {
        display: block;
        max-width: 560px;
        min-height: auto;
    }

    .redesign-form-panel {
        min-height: 0;
        padding: 2.5rem;
    }

    .redesign-copy {
        margin-top: 2.75rem;
        padding-top: 0;
    }

    .redesign-form-panel .redesign-auth-controls {
        margin-bottom: 0;
    }

    .redesign-wide {
        max-width: 620px;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .redesign-wide-intro {
        min-height: auto;
        gap: 2.5rem;
    }

    .redesign-wide-actions .redesign-auth-controls {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .redesign-stage {
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .redesign-form-panel,
    .redesign-wide {
        padding: 1.5rem;
    }

    .redesign-shell,
    .redesign-compact,
    .redesign-wide {
        border-radius: 1rem;
    }

    .redesign-copy {
        margin-top: 2rem;
    }

    .redesign-wide-footer,
    .redesign-version {
        display: none !important;
    }
}
