:root {
    --primary-orange: #da5013;
    --primary-white: #FFFFFF;
    --primary-green: #28A745;
    --primary-blue: #1E88E5;
    --secondary-orange-light: #e67a46;
    --secondary-blue: #1E88E5;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-800: #343A40;
    --gray-900: #212529;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.slider-section {
    flex: 1;
    background: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    display: none;
}

.carousel-item.active {
    display: flex;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: var(--primary-white);
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: none;
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100%;
    filter: invert(44%) sepia(89%) saturate(2619%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

.slide-content {
    text-align: center;
    max-width: 500px;
}

.slide-icon {
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.125rem;
    color: var(--gray-800);
    line-height: 1.7;
}

.slide-icon i {
    font-size: 120px;
    color: var(--primary-white);
}

.form-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange-light) 50%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.form-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.login-card {
    background: var(--primary-white);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.login-card.register-card {
    max-width: 650px;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: var(--gray-800);
    font-size: 0.875rem;
}

.nav-tabs {
    border: none;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
}

.nav-tabs .nav-item {
    flex: 1;
}

.nav-tabs .nav-link {
    border: 2px solid var(--gray-300);
    color: var(--gray-800);
    font-weight: 500;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    background: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: var(--gray-800);
    color: var(--gray-900);
}

.nav-tabs .nav-link.active {
    background: var(--primary-orange);
    color: var(--primary-white);
    border-color: var(--primary-orange);
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-800);
    font-size: 1.125rem;
    z-index: 5;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-800);
    z-index: 10;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-orange);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.remember-me label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--primary-blue);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.input-group {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.input-group .form-control,
.input-group .form-select {
    border: none;
    box-shadow: none;
}

.input-group .form-select {
    max-width: 110px;
    border-right: 1px solid var(--gray-200);
    background-color: var(--gray-100);
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--secondary-orange-light);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange-light));
    border: none;
    border-radius: 12px;
    color: var(--primary-white);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.signup-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Floating Language Selector */
.language-selector-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999 !important;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
}

.language-selector-floating .form-select {
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.3s ease;
}

.language-selector-floating .form-select:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.language-selector-floating .form-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .slider-section {
        display: none;
    }

    .form-section {
        flex: 1;
        padding-bottom: 100px;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .language-selector-floating {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
        border-radius: 12px 12px 0 0;
    }

    .language-selector-floating .form-select {
        width: 100%;
        min-width: auto;
        font-size: 15px;
        padding: 10px 14px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 80px;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .language-selector-floating {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 12px 12px 0 0;
        padding: 12px 15px;
    }

    .form-section {
        padding-bottom: 120px;
    }
}

/* Blue accent for specific text elements */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-800);
    font-size: 0.9375rem;
}
