/* eBrands standalone /login and /register */

html {
    height: auto;
}

body.auth-standalone-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #f4f6fb;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #0f172a;
    -webkit-overflow-scrolling: touch;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-page-aside {
    background: linear-gradient(165deg, #112FBF 0%, #0a1f86 100%);
    color: #fff;
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.auth-page-aside::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -160px;
    bottom: -120px;
    pointer-events: none;
}

.auth-page-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
    z-index: 1;
    width: fit-content;
}

.auth-page-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.auth-page-aside-copy {
    z-index: 1;
    max-width: 420px;
}

.auth-page-aside-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.auth-page-home {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
}

.auth-page-home:hover {
    color: #ffffff;
}

.auth-page-aside-foot {
    z-index: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.auth-page-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 32px 64px;
    background: #f4f6fb;
    min-width: 0;
}

.auth-standalone-page .auth-modal-overlay,
.auth-standalone-page .auth-modal-overlay.active {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.auth-standalone-page .auth-modal-content,
.auth-standalone-page .auth-modal-content.auth-modal-wide {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    animation: none !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 50px rgba(17, 47, 191, 0.1) !important;
}

.auth-standalone-page.register-page .auth-modal-content {
    max-width: 580px !important;
}

.auth-standalone-page .auth-modal-close {
    display: none !important;
}

.auth-standalone-page .auth-modal-body {
    overflow: visible !important;
    max-height: none !important;
    flex: none !important;
}

@media (max-width: 900px) {
    .auth-page {
        display: block;
        min-height: 0;
    }

    .auth-page-aside {
        position: relative;
        height: auto;
        padding: 16px 20px 18px;
        justify-content: flex-start;
        gap: 10px;
    }

    .auth-page-aside::after {
        display: none;
    }

    .auth-page-aside-copy h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .auth-page-home {
        font-size: 13px;
    }

    .auth-page-aside-foot {
        display: none;
    }

    .auth-page-main {
        padding: 16px 16px 48px;
        align-items: stretch;
    }

    .auth-standalone-page .auth-modal-content,
    .auth-standalone-page .auth-modal-content.auth-modal-wide,
    .auth-standalone-page.register-page .auth-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
        margin: 0 !important;
    }

    .auth-standalone-page .auth-modal-body {
        padding: 24px 18px 28px !important;
    }
}
