/* Full-screen layout of the sign-in and verification pages (Components/AuthShell.razor), matching the WebbuilderFrontEnd
   sign-in dialog: promo panel with Bina on the left (1024px and up), content card on the right. */

.aus {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    background: var(--app-bg-soft);
}

[data-theme="dark"] .aus {
    background: var(--app-bg);
}

/* ---------- promo panel ---------- */

.aus-promo {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    min-height: 560px;
    padding: 44px 44px 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
    background: #2A0B63;
    color: #FFFFFF;
}

.aus-promo-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
}

.aus-promo-logo {
    display: block;
    width: 140px;
    height: auto;
}

.aus-promo-eyebrow {
    margin: 44px 0 0;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.aus-promo-title {
    max-width: 420px;
    margin: 12px 0 0;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.aus-promo-text {
    max-width: 380px;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

:lang(zh) .aus-promo-title {
    letter-spacing: 0;
}

/* ---------- content side ---------- */

.aus-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 32px 40px;
}

/* Logo above the card: only when the promo panel (which carries the logo) is hidden */
.aus-logo {
    position: absolute;
    top: 8px;
    left: 32px;
    display: none;
}

.aus-logo img {
    width: auto;
    height: 34px;
}

/* Optional controls (language, theme) in the top corner, level with the logo when it shows */
.aus-top-actions {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Only one of the two logos is shown, for the current theme */
.aus-logo-light {
    display: block;
}

.aus-logo-dark,
[data-theme="dark"] .aus-logo-light {
    display: none;
}

[data-theme="dark"] .aus-logo-dark {
    display: block;
}

.aus-card {
    width: 100%;
    max-width: 480px;
    padding: 44px 40px 36px;
    border: 1px solid var(--app-line);
    border-radius: 28px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-card);
}

/* ---------- responsive ---------- */

@media (max-width: 1023.98px) {
    .aus {
        grid-template-columns: 1fr;
        padding: 0;
        background:
            radial-gradient(60% 40% at 10% 0%, rgba(118, 61, 232, 0.1), transparent 70%),
            radial-gradient(50% 40% at 95% 100%, rgba(255, 183, 165, 0.16), transparent 70%),
            var(--app-bg-soft);
    }

    [data-theme="dark"] .aus {
        background:
            radial-gradient(60% 40% at 10% 0%, rgba(156, 116, 255, 0.14), transparent 70%),
            var(--app-bg);
    }

    .aus-promo {
        display: none;
    }

    .aus-main {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 96px 20px 40px;
    }

    .aus-logo {
        display: inline-flex;
        top: 28px;
    }
}

@media (max-width: 767.98px) {
    /* The controls are 40px high on phones (preference-controls.css), so they move down 1px to stay level with the logo */
    .aus-top-actions {
        top: 25px;
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .aus-logo {
        left: 20px;
    }

    .aus-top-actions {
        right: 20px;
    }

    .aus-card {
        padding: 36px 22px 28px;
        border-radius: 24px;
    }
}
