body.auth-shell {
    min-height: 100svh;
}

.auth-shell .auth-layout {
    min-height: 100svh;
}

.auth-shell .auth-story {
    min-height: 100svh;
    padding-top: max(42px, env(safe-area-inset-top));
    padding-bottom: max(42px, env(safe-area-inset-bottom));
}

.auth-shell .auth-panel {
    padding: clamp(28px, 6vw, 72px);
    background: #f7f4f6;
}

.auth-shell .login-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--patriq-line, #e6dde2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(47, 34, 41, .1);
}

.auth-shell .stack-form input {
    min-height: 50px;
    font-size: 16px;
}

.auth-shell .stack-form > button,
.auth-shell .secondary-button {
    min-height: 50px;
}

.auth-shell .remember-login {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--patriq-line, #e6dde2);
    border-radius: 10px;
    background: var(--patriq-blush, #fdf6fa);
}

@media (max-width: 800px) {
    .auth-shell .auth-layout {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
    }

    .auth-shell .auth-story {
        display: grid;
        min-height: 0;
        padding: max(18px, env(safe-area-inset-top)) 20px 22px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
    }

    .auth-shell .auth-story::after {
        width: 260px;
        height: 260px;
        right: -170px;
        bottom: -180px;
    }

    .auth-shell .auth-story .brand-wordmark {
        width: 155px;
    }

    .auth-shell .auth-language-switcher {
        position: static;
        align-self: start;
        justify-self: end;
    }

    .auth-shell .story-copy {
        margin: 8px 0 0;
        grid-column: 1 / -1;
    }

    .auth-shell .story-copy .eyebrow,
    .auth-shell .story-copy > p:last-child,
    .auth-shell .legal {
        display: none;
    }

    .auth-shell .story-copy h1 {
        max-width: 440px;
        margin: 0;
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.08;
    }

    .auth-shell .auth-panel {
        flex: 1;
        align-items: start;
        padding: 18px 14px max(28px, env(safe-area-inset-bottom));
    }

    .auth-shell .login-card {
        width: 100%;
        padding: 22px 18px;
        border-radius: 15px;
        box-shadow: 0 12px 32px rgba(47, 34, 41, .09);
    }

    .auth-shell .login-card header h2 {
        font-size: 27px;
    }

    .auth-shell .login-card header > p:last-child {
        margin-bottom: 22px;
        font-size: 13px;
        line-height: 1.5;
    }

    .auth-shell .stack-form {
        gap: 14px;
    }
}

@media (max-width: 380px) {
    .auth-shell .auth-story {
        padding-right: 16px;
        padding-left: 16px;
    }

    .auth-shell .auth-panel {
        padding-right: 8px;
        padding-left: 8px;
    }

    .auth-shell .login-card {
        padding-right: 15px;
        padding-left: 15px;
    }
}
