@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #000 0%, #0d0d0d 100%);
}

/* MAIN CONTAINER */
.main-box {
    display: flex;
    padding: 0;
    height: 100vh;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

/* SLIDES */
.box {
    flex: 0.2;
    height: 100%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    list-style: none;
    cursor: pointer;
    transition:
        flex 1s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.5s ease,
        filter 0.4s ease;

    border-right: 1px solid rgba(255,255,255,0.15);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Remove old overlay (we are replacing it with 50/50 image split) */
.box::before,
.box::after {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

.box span {
    text-shadow:
        0 0 3px #000,
        0 0 6px #000,
        0 0 10px #000;
}

/* ========== DESKTOP: 50% IMAGE + 50% BLUR ========== */
@media (min-width: 769px) {

    /* LEFT – original image */
    .box::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 50%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    /* RIGHT – blurred same image */
    .box::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 50%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: blur(18px) brightness(0.6);
        z-index: 1;
    }

    /* Keep text/details above layers */
    .box > * {
        position: relative;
        z-index: 5;
    }
}

/* HOVER EFFECTS */
@media (min-width: 992px) {
    .box:hover {
        flex: 0.5;
        transform: scale(1.03);
        filter: brightness(1.15) drop-shadow(0px 0px 20px rgba(0,255,255,0.5));
    }
}

/* ACTIVE SLIDE */
.box.active {
    flex: 3 !important;
    filter: brightness(1.2);
}

/* TITLES */
.box span {
    position: absolute;
    z-index: 5;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 24px;
    letter-spacing: 4px;
    color: #fff;
    font-weight: 600;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    transition: 0.6s ease;
}

@media (min-width: 769px) {
    .box.active span {
        display: none !important;
    }
}

/* DETAIL PANEL */
.detail {
    width: 50%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(255,255,255,0.08);
    color: white;
    opacity: 0;
    padding: 30px;
    transform: translateY(100%);
    transition: 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
}

.box.active .detail {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------ */
/* LOGIN FORM (placed on blur side) */
/* ------------------------ */

.login-wrapper {
    display: none;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 80%;
}

/* Show login form ONLY on active slide */
.box.active .login-wrapper {
    display: block;
}

.login-card {
    background: #ffffff;
    backdrop-filter: blur(18px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
    color: #fff;
}

.login-card h4 {
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 1px;
}

.under-dev {
    text-align: center;
    color: #fff;
    padding: 20px;
    margin-top: 20px;
    animation: fadeIn 1.2s ease;
}

.under-dev p {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: red;
    text-wrap: auto;
}

.dev-gif {
    /*width: 70px;*/
    height: 70px;
    /*filter: drop-shadow(0 0 12px cyan);*/
}

/* Smooth fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invalid-feedback {
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-weight: bold;
}


/* ========== MOBILE UI ========== */
@media (max-width: 768px) {

    .login-wrapper {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px;
        width: auto;
    }

    .main-box {
        height: 100vh;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 40px;
    }

    .box {
        flex: none;
        min-width: 100%;
        height: calc(100vh - 40px);
        border-right: none;
        border-radius: 25px;
        margin-right: 15px;
        background-size: cover;
        scroll-snap-align: center;
        transform: scale(0.95);
        transition: 0.5s ease;
    }

    .box.active {
        transform: scale(1);
    }

    .box span {
        transform: none;
        top: 20px;
        font-size: 26px;
        width: auto;
        right: 0rem;
        left: auto;
        /*writing-mode: horizontal-tb !important;*/
    }

    .detail {
        width: 100%;
        height: 100%;
        bottom: 0;
        padding: 22px;
        transform: translateY(80px);
        border-radius: 25px 25px 0 0;
    }

    .box.active .detail {
        transform: translateY(0);
    }

    .dots {
        position: absolute;
        bottom: 18px;
        width: 100%;
        text-align: center;
        z-index: 50;
    }

    .dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin: 0 5px;
        background: rgb(255 255 255);
        border-radius: 50%;
        transition: 0.3s ease;
        border: 1px solid black;
    }

    .dot.active {
        background: red;
    }
}

