#customer-login-container:has(.luon-sso-embed) {
    display: block;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.luon-sso-embed {
    width: 100%;
    max-width: 1120px;
    margin: 2rem auto 3rem;
    overflow: hidden;
    border: 1px solid #dedbdc;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 36px rgba(19, 21, 24, .08);
}

#customer-login-container .luon-sso-embed {
    margin-block: 0;
}

.luon-sso-embed__header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
}

.luon-sso-embed__header h1 {
    margin: 0;
    color: #131518;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.luon-sso-embed__header p {
    margin: .5rem 0 0;
    color: #5a5758;
}

.luon-sso-embed__viewport {
    position: relative;
    min-height: 690px;
    border-block: 1px solid #efedee;
    background: #fff;
}

.luon-sso-embed__frame {
    width: 100%;
    height: min(790px, calc(100vh - 10rem));
    min-height: 690px;
    border: 0;
    background: #fff;
}

.luon-sso-embed__loading,
.luon-sso-embed__error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    padding: 2rem;
    background: #fff;
    color: #454345;
    text-align: center;
}

.luon-sso-embed__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #dedbdc;
    border-top-color: #131518;
    border-radius: 50%;
    animation: luon-sso-spin .8s linear infinite;
}

.luon-sso-embed__error h2 {
    max-width: 34rem;
    margin: 0;
    color: #131518;
    font-size: 1.25rem;
    font-weight: 700;
}

.luon-sso-embed__error p {
    max-width: 38rem;
    margin: 0;
}

.luon-sso-embed__error button,
.luon-sso-embed__retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: #131518;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.luon-sso-embed__error button {
    padding: .75rem 1.25rem;
}

.luon-sso-embed__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.5rem 1.25rem;
    text-align: center;
}

.luon-sso-embed__fallback p {
    margin: 0;
    color: #b85f0b;
    font-size: .875rem;
}

.luon-sso-embed__retry {
    padding: .65rem 1rem;
}

.luon-sso-embed__fallback small {
    color: #737373;
}

@keyframes luon-sso-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    #customer-login-container:has(.luon-sso-embed) {
        padding: 1rem .5rem 2rem;
    }

    .luon-sso-embed__header {
        padding-inline: 1rem;
    }

    .luon-sso-embed__viewport,
    .luon-sso-embed__frame {
        min-height: 650px;
    }

    .luon-sso-embed__frame {
        height: 75vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .luon-sso-embed__spinner {
        animation-duration: 1.6s;
    }
}
