﻿/* Base styling */

body {
    background: url(/images/home/bg.jpg) no-repeat fixed center top;
    background-size: cover;
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}
/* Carousel container */
.carousel-identification-sso {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Each carousel image */
.carousel-item-identification-sso {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.carousel-item-identification-sso.visible {
    opacity: 1;
}


/* Right sidebar for login form */

.right-sidebar {
    position: relative;
    z-index: 1020; /* Sidebar stays visible but below modal and backdrop */
    width: 500px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

}


/* Ensure the modal backdrop has a lower z-index than the modal but higher than the sidebar */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;  
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);  
}

/* Ensure the modal itself is above the backdrop */
.modal {
    z-index: 1050;
}

.right-sidebar .header-identification-intraflex .header-title-identification-intraflex {
    background: url(/Images/home/logo.png);
    background-repeat: no-repeat;
    background-size: 76px;
    background-position: left;
    padding-left: 90px;
}




/* Styling for the title */
.title {
    font-size: 3rem;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease;
}

/* Add an underline with animation for the title */
/* General styling for header */
.header-identification-intraflex {
    text-align: center;
    padding: 5px;
   /* background-color: #f9f9f9;*/
}
.title .border {
    width: 60%;
    height: 4px;
    background: #0072ff;
    margin: 10px auto 0;
    animation: expand 1s ease forwards;
    transition: width 0.4s ease-in-out;
}
@keyframes expand {
     0% {
         width: 0;
     }

     100% {
         width: 60%;
     }
 }


/* Subtitle styling */
.subtitle {
    font-size: 1.25rem;
    font-family: 'Open Sans', sans-serif;
    color: #555;
    margin-top: 10px;
}

.subtitle a {
    color: #0072ff;
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

/* Subtitle hover effect */
.subtitle a:hover {
    color: #00c6ff;
}

/* Add subtle shadow for title */
.title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add smooth hover effect for the title */
.title:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff); /* Reverse gradient on hover */
    transition: background 0.4s ease;
}


.contenu-identification-intraflex {
    flex-grow: 1;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-self: stretch;
}

.row {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.contenu-identification-intraflex .section-login #section-form {
    position: relative;
    left: 0;
    opacity: 1;
}

.contenu-identification-intraflex .section-login {
    min-height: 380px;
}

form {
    display: block;
    margin-top: 0em;
    unicode-bidi: isolate;
}


/* Login form styling */
.login-form {
    display: flex;
    flex-direction: column;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.login-form label {
    margin-bottom: 5px;
}

.login-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* Optional: Ensure the footer itself is centered */
.footer {
    text-align: center;
    padding: 10px;
}
.footer-links {
    margin: 10px 0;
}

.footer-links ul {
    list-style-type: none; /* Remove the bullet points (dots) */
    padding-left: 0; /* Remove left padding */
}

.footer-links ul li {
    margin-bottom: 10px; /* Add some space between each list item */
}

    .footer-links ul li a {
        color: #000000; /* Ensure the links are visible */
        text-decoration: none;
    }

.footer-links ul li a:hover {
    text-decoration: underline; /* Add underline on hover for better visibility */
}

/* Adjustments for mobile responsiveness */
@media (max-width: 768px) {
    .right-sidebar {
        width: 100%; /* Full width for mobile */
        /*height: 100%;*/ /* Ensure it covers full height */
        position: absolute; /* Absolute positioning to ensure full coverage */
        top: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.9); /* Make background more opaque for readability */
        padding: 20px; /* Adjust padding for mobile */
        box-shadow: none; /* Remove shadow for cleaner look */
    }

    .login-form h2 {
        font-size: 20px; /* Adjust font size */
    }

    .login-form input,
    .login-form button {
        width: 100%;
        font-size: 16px; /* Adjust font size for mobile */
    }
}

@media (max-width: 480px) {
    .right-sidebar {
        padding: 15px; /* Adjust padding for smaller devices */
        background-color: rgba(255, 255, 255, 0.8); /* Slightly more transparent */
    }

    .login-form h2 {
        font-size: 18px; /* Smaller font size for extra small devices */
    }

    .login-form input,
    .login-form button {
        font-size: 14px;
        padding: 8px; /* Smaller padding for inputs and buttons */
    }
}