/* Presentation owned by Merchant Portal; selectors stay within its auth shell. */
[data-oidc-theme="merchant-portal"] {
    --background: 0 0% 100%;
    --foreground: 222.2 47.4% 11.2%;
    --card: 0 0% 100%;
    --primary: 254 84% 58%;
    --primary-foreground: 210 40% 98%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
    position: relative;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 144px 20px 28px;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-family: ui-sans-serif, system-ui, sans-serif;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-card {
    width: 100%;
    max-width: 352px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-header {
    display: block;
    padding: 0;
    text-align: left;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-logo {
    position: absolute;
    top: 35px;
    left: 20px;
    width: 138px;
    margin: 0;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-heading {
    margin: 0 0 20px;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: normal;
}

[data-oidc-theme="merchant-portal"][data-variant="login"] .oidc-auth-heading {
    margin-bottom: 28px;
}

[data-oidc-theme="merchant-portal"][data-variant="login"] .oidc-auth-title {
    font-size: 40px;
    line-height: 42px;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-greeting {
    margin: 0 0 4px;
    color: hsl(var(--muted-foreground));
    font-size: 18px;
    line-height: 28px;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-content {
    padding: 0;
}

[data-oidc-theme="merchant-portal"] label {
    font-weight: 700;
}

[data-oidc-theme="merchant-portal"] input {
    background: hsl(var(--background));
}

[data-oidc-theme="merchant-portal"] .oidc-auth-support {
    margin-top: 20px;
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    line-height: 20px;
}

[data-oidc-theme="merchant-portal"] .oidc-auth-illustration {
    display: none;
}

@media (min-width: 640px) {
    [data-oidc-theme="merchant-portal"][data-variant="login"] .oidc-auth-title {
        font-size: 48px;
        line-height: 48px;
    }
}

@media (min-width: 768px) {
    [data-oidc-theme="merchant-portal"] {
        padding-top: 128px;
    }
}

@media (min-width: 1024px) {
    [data-oidc-theme="merchant-portal"] {
        grid-template-columns: minmax(360px, 448px) minmax(460px, 663px);
        align-items: end;
        gap: clamp(48px, 7vw, 110px);
        overflow: hidden;
        padding-top: 88px;
        padding-bottom: 34px;
    }

    [data-oidc-theme="merchant-portal"][data-variant="login"] .oidc-auth-card {
        margin-bottom: 182px;
    }

    [data-oidc-theme="merchant-portal"][data-variant="account"]
        .oidc-auth-card {
        align-self: center;
        padding: 32px 0;
    }

    [data-oidc-theme="merchant-portal"] .oidc-auth-illustration {
        position: relative;
        display: block;
        width: 100%;
        max-width: 663px;
        height: min(87.5vh, 896px);
        min-height: 560px;
        aspect-ratio: 663 / 896;
        overflow: hidden;
        border-radius: 12px;
    }

    [data-oidc-theme="merchant-portal"] .oidc-auth-illustration img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    [data-oidc-theme="merchant-portal"] .oidc-auth-caption {
        position: absolute;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        overflow: hidden;
        border-radius: 10px;
        padding: 10px;
        background: hsl(var(--background));
        font-size: 14px;
        font-weight: 700;
        line-height: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
