/* Custom Login Page Styles */
.custom-login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Left Column Styles */
.login-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* background-color: #ffffff; */
    position: relative;
}

.login-left-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 60px;
    width: auto;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

/* Right Column Styles */
.login-right-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* background-color: #ffffff; */
    padding: 2rem;
}

.login-right-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 50px;
    overflow: hidden;
}

.login-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.login-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback background if image is not available */
.login-bg-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-bg-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/auth/login-background.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.8;
}

.login-bottom-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    text-align: left;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #ffffff;
}

.login-bottom-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-bottom-text p {
    font-size: 2rem;
    line-height: 44px;
    margin: 0;
}

/* Form Styles */
.login-form-container .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.login-form-container .card-body {
    padding: 2.5rem;
}

.login-form-container h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.login-form-container .form-group {
    margin-bottom: 1.5rem;
}

.login-form-container .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #5a6c7d;
}

.login-form-container .form-control {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    padding: 0 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form-container .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.login-form-container .btn-primary {
    height: 50px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.login-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.login-form-container .text-center {
    margin-top: 1.5rem;
}

.login-form-container .text-center a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form-container .text-center a:hover {
    text-decoration: underline;
}

/* Language Dropdown Styles */
.lang-dropdown-only-desk {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

.drp-language .dropdown-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem; /* Bootstrap border-radius */
    padding: 0.5rem 1rem;
    color: #2c3e50;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.drp-language .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem; /* Bootstrap border-radius */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Bootstrap shadow */
}

.drp-language .dropdown-item {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.drp-language .dropdown-item:hover {
    background: var(--bs-primary);
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-login-container {
        background:
            linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
            url('../assets/images/auth/login-background.jpg') no-repeat center center;
        background-size: cover;
    }
    /* Add card styling for forms */
    .custom-login-form {
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        width: 100%;
    }
    .login-row {
        flex-direction: column;
    }
    
    .login-left-column,
    .login-right-column {
        flex: none;
    }
    
    .login-left-column {
        min-height: 100vh;
        /* background-color: #ffffff; */
    }

    .login-left-content {
        min-height: 100vh;
    }
    
    .login-right-column {
        min-height: 40vh;
        display: none; /* Hide right column on mobile */
    }
    
    .login-bottom-text h3 {
        font-size: 1.5rem;
    }
    
    .login-bottom-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .login-left-content {
        padding: 1rem;
    }
    
    .login-form-container {
        padding: 0 0.5rem;
    }
    
    .custom-login-form {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .login-bottom-text {
        padding: 1rem;
    }
    
    .lang-dropdown-only-desk {
        top: 1rem;
        right: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] .login-left-content {
    direction: rtl;
}

[dir="rtl"] .lang-dropdown-only-desk {
    left: 2rem;
    right: auto;
}

[dir="rtl"] .login-bottom-text {
    direction: rtl;
}

[dir="rtl"] .login-form-container .text-center {
    direction: rtl;
}

[dir="rtl"] .login-form-container .text-center a {
    display: inline-block;
}

@media (max-width: 576px) {
    [dir="rtl"] .lang-dropdown-only-desk {
        left: 1rem;
        right: auto;
    }
}