/* Professional Login Enhancement Styles */

/* Body Background with Gradient */
.hold-transition.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hold-transition.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.15"/><circle cx="10" cy="80" r="0.5" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Login Box Container - Hidden for new layout */
.login-box {
    display: none;
}

/* Split Layout Container */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Login Form Section (Left Side) */
.login-form-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-width: 400px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider Section (Right Side) */
.slider-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel {
    height: 100vh;
}

.carousel-item {
    height: 100vh;
}

.slide-content {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background images for slides */
.slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%234f46e5"/><text x="600" y="400" text-anchor="middle" fill="white" font-size="48" font-family="Arial">Education</text></svg>');
}

.slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%237c3aed"/><text x="600" y="400" text-anchor="middle" fill="white" font-size="48" font-family="Arial">Instructors</text></svg>');
}

.slide-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%23a855f7"/><text x="600" y="400" text-anchor="middle" fill="white" font-size="48" font-family="Arial">Learning</text></svg>');
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(124, 58, 237, 0.8) 100%);
}

.slide-text {
    text-align: center;
    color: white;
    max-width: 500px;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: white;
    border-color: white;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.login-title i {
    color: #4f46e5;
    margin-right: 10px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.input-group-text {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.3s ease;
    border-right: none;
}

[dir="rtl"] .input-group-text {
    border-right: 1px solid #e2e8f0;
    border-left: none;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    transform: scale(1.05);
}

.form-control {
    border: 1px solid #e2e8f0;
    border-left: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 12px 16px;
}

[dir="rtl"] .form-control {
    border-left: 1px solid #e2e8f0;
    border-right: none;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    background: white;
    outline: none;
}

.input-group:focus-within .form-control {
    border-left: 1px solid #4f46e5;
}

[dir="rtl"] .input-group:focus-within .form-control {
    border-right: 1px solid #4f46e5;
    border-left: 1px solid #e2e8f0;
}

/* Form Check (Remember Me) */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 8px;
}

.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.form-check-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Additional Links */
.additional-links {
    text-align: center;
    margin-top: 30px;
}

.link-group {
    display: inline-block;
    margin: 0 15px;
}

.link-separator {
    color: #6b7280;
    font-size: 14px;
    margin: 0 10px;
}

.text-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.text-link:hover {
    color: #7c3aed;
    transform: translateX(3px);
}

[dir="rtl"] .text-link:hover {
    transform: translateX(-3px);
}

.text-link i {
    margin-right: 8px;
}

[dir="rtl"] .text-link i {
    margin-right: 0;
    margin-left: 8px;
}

/* Validation Styles */
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #dc2626;
}

/* RTL Support */
[dir="rtl"] .login-container {
    direction: rtl;
}

[dir="rtl"] .login-title i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .btn-primary .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-form-section {
        min-height: 50vh;
        padding: 30px 20px;
        min-width: auto;
    }

    .slider-section {
        min-height: 50vh;
    }

    .carousel {
        height: 50vh;
    }

    .carousel-item {
        height: 50vh;
    }

    .slide-content {
        height: 50vh;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 576px) {
    .login-form-section,
    .slider-section {
        padding: 20px 15px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .additional-links {
        margin-top: 20px;
    }

    .link-group {
        display: block;
        margin: 10px 0;
    }

    .link-separator {
        display: block;
        margin: 10px 0;
        font-weight: 600;
    }
}