/* ============================================================================
   IRO auth pages — split layout with image slideshow hero.
   Used by Login / SignUp / ForgotMyPassword (Layout = null pages).
   ============================================================================ */
html, body { height: 100%; }
body.blank-page { background: #141c30 !important; }
body.blank-page .content-wrapper { padding: 0 !important; }

.login-split {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* ---- Hero / sidebar with crossfading slideshow ---- */
.login-hero {
    position: relative;
    flex: 1 1 56%;
    background: #1b2740;
    overflow: hidden;
}

.login-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease;
}

    .login-hero-slide.is-active {
        opacity: 1;
        transform: scale(1);
        transition: opacity 1.2s ease, transform 6.5s ease;
    }

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(16, 22, 40, .12) 0%, rgba(16, 22, 40, .32) 52%, rgba(16, 22, 40, .85) 100%);
}

.login-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 3rem 3.5rem;
    color: #fff;
}

    .login-hero-content h1 {
        color: #fff;
        font-weight: 800;
        font-size: 2.1rem;
        line-height: 1.15;
        margin: 0 0 .6rem;
        text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
    }

    .login-hero-content p {
        color: rgba(255, 255, 255, .9);
        font-size: 1rem;
        max-width: 38ch;
        margin: 0;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    }

    .login-hero-content .login-hero-accent {
        display: inline-block;
        width: 54px;
        height: 4px;
        border-radius: 50rem;
        background: linear-gradient(90deg, #e53935, #ff7a7a);
        margin-bottom: 1.1rem;
    }

/* ---- Form panel ---- */
.login-panel {
    flex: 1 1 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2rem 1.5rem;
    min-width: 0;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

    .login-card .card-logo { text-align: center; margin-bottom: 1.1rem; }

        .login-card .card-logo img {
            width: auto !important;
            height: auto !important;
            max-width: 230px;
            max-height: 78px;
        }

    .login-card .login-lang { text-align: center; margin-bottom: .4rem; }
    .login-card .login-lang ul { padding: 0; margin: 0; list-style: none; }

    .login-card .card-subtitle {
        text-align: center;
        color: #6e6b7b;
        font-weight: 600;
        letter-spacing: .2px;
        margin-bottom: 1.2rem;
    }

    .login-card .form-control {
        border: 1px solid #e2e5ec;
        border-radius: 10px;
        min-height: 46px;
        background: #fff;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

        .login-card .form-control:focus {
            border-color: #5a8dee;
            box-shadow: 0 0 0 3px rgba(90, 141, 238, .15);
        }

    .login-card .has-icon-left .form-control { padding-left: 2.7rem; }

    .login-card .has-icon-left .form-control-position {
        top: 50%;
        transform: translateY(-50%);
        left: .35rem;
        margin-top: 0 !important;
        color: #8a90a6;
    }

    .login-card .chk-remember + label a { color: #5a8dee; font-weight: 600; cursor: pointer; }
    .login-card .chk-remember + label a:hover { text-decoration: underline; }

    .login-card .btn-block {
        border-radius: 50rem;
        font-weight: 600;
        padding: .65rem 1rem;
        transition: transform .18s ease, filter .18s ease;
    }

        .login-card .btn-block + .btn-block { margin-top: .65rem; }
        .login-card .btn-block:hover { transform: translateY(-1px); }

    .login-card .btn-outline-info {
        background: linear-gradient(135deg, #5a8dee, #6f6df0);
        color: #fff !important;
        border: none;
        box-shadow: 0 8px 18px -7px rgba(90, 141, 238, .7);
    }

        .login-card .btn-outline-info:hover { filter: brightness(1.05); color: #fff !important; }

    .login-card .card-link { color: #5a8dee; font-weight: 600; }

/* Rules / info modal (sign-up) */
#slideInDown .modal-content { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 26px 64px -20px rgba(0, 0, 0, .55); }
#slideInDown .modal-header { border-bottom: 1px solid #ebe9f1; }
#slideInDown .modal-footer { border-top: 1px solid #ebe9f1; }

/* ---- Responsive: stack, hide hero on small screens ---- */
@media (max-width: 991.98px) {
    .login-hero { display: none; }

    .login-panel {
        flex: 1 1 100%;
        background: linear-gradient(160deg, #eef2fb 0%, #ffffff 60%);
    }

    .login-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 18px 50px -20px rgba(34, 41, 47, .35);
        padding: 1.75rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-hero-slide { transition: none !important; transform: none !important; }
    .login-card .btn-block { transition: none; }
}
