﻿:root {
    --theme-color-1: #F8B421;
    --theme-color-2: #214080;
    --theme-color-3: #F8B421;
    --theme-gradient: linear-gradient(135deg, var(--theme-color-1), var(--theme-color-2), var(--theme-color-3));
}

/* Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: var(--theme-gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

/* MAIN WRAPPER */
.login-wrapper {
    display: flex;
    width: 1150px;
    max-width: 95%;
    height: 620px;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* LEFT SLIDER */
.login-slider {
    width: 60%;
    height: 100%;
    overflow: hidden;
}

    .login-slider .carousel-inner,
    .login-slider .carousel-item {
        height: 100%;
    }

    .login-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* balanced solution */
        object-position: center;
    }

/* RIGHT FORM */
.login-container {
    width: 40%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header img {
        max-width: 160px;
        margin-bottom: 1rem;
    }

    .login-header h2 {
        color: #343A40;
        font-weight: 700;
    }

    .login-header p {
        color: #214080;
        font-size: 0.9rem;
        font-weight: 600;
    }

/* INPUT FOCUS */
.form-control:focus {
    border-color: var(--theme-color-2);
    box-shadow: none;
}

/* BUTTON */
.btn-login {
    background-color: #214080;
    border: none;
    color: #fff;
    font-weight: 700;
    transition: 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

/* LINKS */
.form-links {
    margin-top: 1.5rem;
    text-align: center;
}

    .form-links a {
        color: #214080;
        text-decoration: none;
    }

        .form-links a:hover {
            text-decoration: underline;
        }

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #ffc107 !important;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    transition: opacity .6s ease;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .login-slider {
        width: 100%;
        height: 320px;
    }

    .login-container {
        width: 100%;
    }
}
