/* ================================================================
   LoginBS5.css
   IVO, Inc. — Member Login Page Styles
   Prefix: ivo-lg-  (no collision with any other IVO class)
   All colors via --ivo-* and --dp-* tokens from IvoThemeVariables.css
   Load order: IvoThemeVariables > ivoShared > IvoSiteStyle > LoginBS5
   ================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--ivo-font-body);
    overflow-x: hidden;
}

/* ── Full-page canvas ─────────────────────────────────────────── */
.ivo-lg-canvas {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 20px;
    position: relative;
}

    /*
   Canvas background radial glows — use ivo-royal and ivo-gold channel
   values via color-mix where possible, otherwise reference the raw
   channel tokens. Because CSS variables cannot be used inside rgba()
   without color-mix, we use the var() directly in modern syntax.
   All three radial layers now reference brand tokens.
*/
    .ivo-lg-canvas::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 75% 55% at 15% 35%, color-mix(in srgb, var(--ivo-royal) 22%, transparent) 0%, transparent 60%), radial-gradient(ellipse 55% 65% at 88% 82%, color-mix(in srgb, var(--ivo-gold) 8%, transparent) 0%, transparent 55%), radial-gradient(ellipse 40% 40% at 60% 10%, color-mix(in srgb, var(--ivo-royal) 10%, transparent) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

    .ivo-lg-canvas::after {
        content: '';
        position: fixed;
        inset: 0;
        background-image: linear-gradient(color-mix(in srgb, var(--ivo-royal) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ivo-royal) 4%, transparent) 1px, transparent 1px);
        background-size: 60px 60px;
        pointer-events: none;
        z-index: 0;
        animation: ivo-lg-grid-drift 30s linear infinite;
    }

@keyframes ivo-lg-grid-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

/* ── Card ─────────────────────────────────────────────────────── */
.ivo-lg-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: row;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.60), 0 0 0 1px rgba(255,255,255,0.05);
    animation: ivo-lg-enter 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes ivo-lg-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── LEFT PANEL ───────────────────────────────────────────────── */
/*
   Was: linear-gradient(160deg, #0e2040 0%, #091525 65%, #0a1628 100%)
   Now: uses --ivo-navy token throughout. The three stops were all
   near-navy shades — the middle/end can be darkened via color-mix
   to preserve the subtle depth without any hardcoded hex.
*/
.ivo-lg-left {
    flex: 0 0 46%;
    background: linear-gradient( 160deg, color-mix(in srgb, var(--ivo-navy) 75%, #000) 0%, color-mix(in srgb, var(--ivo-navy) 88%, #000) 65%, var(--ivo-navy) 100% );
    padding: 38px 34px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid color-mix(in srgb, var(--ivo-gold) 18%, transparent);
}

    .ivo-lg-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 150px;
        height: 3px;
        background: linear-gradient(90deg, var(--ivo-gold), transparent);
    }

    .ivo-lg-left::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 110px;
        background: linear-gradient(180deg, var(--ivo-gold), transparent);
    }

.ivo-lg-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.ivo-lg-logo-img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.ivo-lg-logo-initials {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ivo-gold), var(--ivo-gold-dark, #c47e10));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ivo-font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ivo-navy);
    flex-shrink: 0;
}

.ivo-lg-logo-text {
    display: flex;
    flex-direction: column;
}

.ivo-lg-company-name {
    font-family: var(--ivo-font-serif);
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.ivo-lg-company-sub {
    font-size: 9.5px;
    color: rgba(255,255,255,0.40);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 3px;
}

.ivo-lg-welcome {
    font-family: var(--ivo-font-serif);
    font-size: 2.1rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
}

    .ivo-lg-welcome em {
        font-style: italic;
        color: var(--ivo-gold);
    }

.ivo-lg-location {
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    font-weight: 300;
}

.ivo-lg-rule {
    width: 46px;
    height: 2px;
    background: linear-gradient(90deg, var(--ivo-gold), transparent);
    margin-bottom: 18px;
}

.ivo-lg-platform-text {
    font-size: 12px;
    color: rgba(255,255,255,0.34);
    line-height: 1.82;
    margin-bottom: 22px;
    font-style: italic;
    font-weight: 300;
}

/* DisplayArticlebs5 wrapper on dark background */
.ivo-lg-article-wrap {
    background: color-mix(in srgb, #ffffff 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--ivo-gold) 13%, transparent);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    flex: 1;
}

    .ivo-lg-article-wrap,
    .ivo-lg-article-wrap p,
    .ivo-lg-article-wrap span,
    .ivo-lg-article-wrap li,
    .ivo-lg-article-wrap div {
        color: rgba(255,255,255,0.70) !important;
        font-size: 12px !important;
        line-height: 1.75 !important;
    }

        .ivo-lg-article-wrap h1,
        .ivo-lg-article-wrap h2,
        .ivo-lg-article-wrap h3,
        .ivo-lg-article-wrap h4 {
            color: rgba(255,255,255,0.88) !important;
            font-family: var(--ivo-font-serif) !important;
            font-size: 14px !important;
            font-weight: 400 !important;
            margin-bottom: 7px !important;
        }

        .ivo-lg-article-wrap a {
            color: var(--ivo-gold) !important;
        }

.ivo-lg-tagline {
    font-size: 10.5px;
    font-style: italic;
    color: color-mix(in srgb, var(--ivo-gold) 48%, transparent);
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── RIGHT PANEL ──────────────────────────────────────────────── */
.ivo-lg-right {
    flex: 1;
    background: #ffffff;
    padding: 38px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ivo-lg-alert {
    background: #fff8e6;
    border-left: 3px solid var(--ivo-gold);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #7a5500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ivo-lg-form-title {
    font-family: var(--ivo-font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ivo-navy);
    line-height: 1.15;
}

.ivo-lg-form-sub {
    font-size: 12.5px;
    color: var(--ivo-text-muted);
    margin-top: 4px;
    margin-bottom: 24px;
}

.ivo-lg-field {
    margin-bottom: 14px;
}

    .ivo-lg-field label {
        display: block;
        font-size: 9.5px;
        font-weight: 600;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        color: var(--ivo-text-muted);
        margin-bottom: 6px;
    }

.ivo-lg-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--dp-input-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

    .ivo-lg-input-group:focus-within {
        border-color: var(--ivo-royal);
        box-shadow: 0 0 0 3px var(--dp-input-focus-shadow);
    }

.ivo-lg-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    background: var(--ivo-royal);
    color: #ffffff;
    font-size: 15px;
}

.ivo-lg-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    background: var(--dp-input-bg);
    font-family: var(--ivo-font-body);
    font-size: 13px;
    color: var(--ivo-text-dark);
    min-width: 0;
}

    .ivo-lg-input-group input:focus {
        background: var(--dp-input-focus-bg);
    }

.ivo-lg-eye-btn {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--dp-input-bg);
    border: none;
    color: var(--ivo-text-muted);
    cursor: pointer;
    font-size: 15px;
    transition: color .15s;
}

    .ivo-lg-eye-btn:hover {
        color: var(--ivo-royal);
    }

.ivo-lg-forgot {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 18px;
}

    .ivo-lg-forgot a,
    .ivo-lg-forgot a:visited {
        font-size: 12px;
        color: var(--ivo-gold);
        text-decoration: none;
        font-weight: 500;
    }

        .ivo-lg-forgot a:hover {
            color: var(--ivo-navy);
        }

.ivo-lg-status {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
    text-align: center;
    min-height: 18px;
    display: block;
    margin-bottom: 8px;
}

.ivo-lg-btn-signin {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ivo-navy) 0%, var(--ivo-royal) 100%);
    color: #ffffff !important;
    font-family: var(--ivo-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: opacity .18s, box-shadow .18s;
    margin-bottom: 14px;
}

    .ivo-lg-btn-signin:hover {
        opacity: 0.91;
        box-shadow: 0 6px 20px color-mix(in srgb, var(--ivo-royal) 30%, transparent);
    }

.ivo-lg-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 14px;
    color: var(--ivo-text-muted);
    font-size: 11.5px;
}

    .ivo-lg-divider::before,
    .ivo-lg-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--ivo-border);
    }

.ivo-lg-btn-new {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: 1.5px solid var(--ivo-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ivo-royal) !important;
    font-family: var(--ivo-font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .15s, background .15s;
    margin-bottom: 20px;
}

    .ivo-lg-btn-new:hover {
        border-color: var(--ivo-royal);
        background: var(--dp-input-bg);
    }

.ivo-lg-bottom {
    padding-top: 12px;
    border-top: 1px solid var(--ivo-border);
    min-height: 16px;
}

.ivo-lg-admin-blend {
    font-size: 11.5px;
    color: var(--ivo-text-muted) !important;
    text-decoration: none !important;
    background: none;
    border: none;
    padding: 0;
    cursor: default !important;
    font-family: var(--ivo-font-body);
    line-height: 1;
    display: inline;
}

    .ivo-lg-admin-blend:hover {
        color: var(--ivo-text-muted) !important;
        text-decoration: none !important;
        cursor: default !important;
    }

/* ── Admin settings overlay — role 9 only ─────────────────────── */
.ivo-lg-settings-overlay {
    position: fixed;
    bottom: 10%;
    right: 0;
    z-index: 1000;
}

.ivo-lg-settings-btn {
    display: block;
    background: rgba(185,28,28,0.55);
    color: #ffffff !important;
    border-radius: 30px 0 0 30px;
    padding: 8px 13px 8px 11px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    font-family: var(--ivo-font-body);
    transition: background .2s;
}

    .ivo-lg-settings-btn:hover {
        background: rgba(185,28,28,0.88);
    }

.ivo-lg-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 14px 0 4px;
    font-size: 10px;
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.06em;
}

/* ── Logo wrapped in home link ────────────────────────────────── */
.ivo-lg-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

    .ivo-lg-logo-link:hover {
        opacity: 0.85;
    }

/* ── Home button — shown when no logo image exists ────────────── */
.ivo-lg-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 20px;
    padding: 5px 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

    .ivo-lg-home-btn:hover {
        background: rgba(255,255,255,0.18);
        color: #fff;
    }

/* ── Mobile — form first, brand second ────────────────────────── */
@media (max-width: 680px) {
    .ivo-lg-canvas {
        padding: 16px 12px 16px;
        justify-content: flex-start;
    }

    .ivo-lg-card {
        flex-direction: column-reverse;
        border-radius: 14px;
        max-width: 100%;
    }

    .ivo-lg-left {
        flex: none;
        border-right: none;
        border-top: 1px solid color-mix(in srgb, var(--ivo-gold) 18%, transparent);
        padding: 26px 24px 22px;
    }

    .ivo-lg-right {
        padding: 28px 24px 24px;
        justify-content: flex-start;
    }

    .ivo-lg-welcome {
        font-size: 1.65rem;
    }

    .ivo-lg-article-wrap {
        flex: none;
    }
}
