﻿
/* Variables CSS */
:root {
    /*--primary-green: #28a745;*/
    --primary-green-light: #68bb61;
    --primary-green: #009247;
    /*--primary-red: #dc3545;*/
    --primary-red: #cc342f;
    /*--primary-blue: #4a5fc1;*/
    --primary-blue: #26397a;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --focus-color: #4a5fc1;
    --focus-shadow: rgba(74, 95, 193, 0.25);
    --login-gradient-top: #262261;
    --login-gradient-bottom: #2b388e;
}

/* Reset et styles de base */
    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

     html, body {
            height: 100vh;
            background-color: #ffffff;
         
        }

/*   .container-fluid {
            height: 100vh;
            padding: 0;
        }*/

/*  .row {
            margin: 0;
            height: 100%;
        }*/

/* Section formulaire de connexion avec fond blanc */
.login-section {
    background-color: #ffffff;
    /*padding: 2rem;*/
    /*min-height: 100vh;*/
    color: var(--text-dark);
    /*overflow:auto;*/
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* Logo */
.logo-container {
    /*margin-bottom: 3rem;*/
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Titre et sous-titre */
.login-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Formulaire amélioré */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
}

/* Nouveau style pour les champs de saisie */
.form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: var(--text-dark);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

    .form-control::placeholder {
        color: #9ca3af;
        transition: opacity 0.3s ease;
    }

    .form-control:focus {
        border-color: var(--focus-color);
        box-shadow: 0 0 0 3px rgba(74, 95, 193, 0.1);
        outline: none;
        color: var(--text-dark);
    }

    .form-control:hover:not(:focus) {
        border-color: #9ca3af;
    }

/* Conteneur pour les icônes dans les inputs */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-container:focus-within .input-icon {
    color: var(--focus-color);
}

/* Icône pour toggle password */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

    .password-toggle:hover {
        color: var(--focus-color);
        background-color: rgba(74, 95, 193, 0.1);
    }

    .password-toggle:focus {
        outline: 2px solid var(--focus-color);
        outline-offset: 2px;
        color: var(--focus-color);
    }

/* Ajustement pour le champ password avec icône de toggle */
.form-control.password-field {
    padding-right: 3rem;
}

/* Suppression des anciens styles input-group */
.input-group {
    display: none;
}

.input-group-text,
.input-group-prepend,
.input-group-append,
.toggle-password {
    display: none;
}

/* Checkbox personnalisé amélioré */

.form-check {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

    .form-check:hover {
        background-color: rgba(74, 95, 193, 0.05);
    }

.form-check-input {
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0;
    margin-right: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--border-color);
    background-color: #ffffff;
    border-radius: 4px;
}

    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem var(--focus-shadow);
        outline: none;
        border-color: var(--focus-color);
    }

    .form-check-input:checked {
        background-color: var(--focus-color);
        border-color: var(--focus-color);
        transform: scale(1.1);
    }

    .form-check-input:checked:focus {
            box-shadow: 0 0 0 0.2rem var(--focus-shadow);
        }

.form-check-label {
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-bottom: 0;
}

.form-check:hover .form-check-label {
    color: var(--focus-color);
}

/* Section Remember Me et Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*  margin-bottom: 2rem;*/
  }
  
  .forgot-password-link {
      color: var(--focus-color);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: all 0.3s ease;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
  }
  
  .forgot-password-link:hover {
      color: var(--primary-blue);
      background-color: rgba(74, 95, 193, 0.1);
      text-decoration: underline;
  }
  
  .forgot-password-link:focus {
      outline: 2px solid var(--focus-color);
      outline-offset: 2px;
  }
  /* Bouton de connexion amélioré */
.btn-login {
    background: linear-gradient(135deg, var(--focus-color) 0%, #3a4a8a 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(74, 95, 193, 0.3);
    width: 100%;
}

    .btn-login::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;
    }

    .btn-login:hover::before {
        left: 100%;
    }

    .btn-login:hover {
        background: linear-gradient(135deg, #3a4a8a 0%, #2a3570 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(74, 95, 193, 0.4);
    }

    .btn-login:focus {
        box-shadow: 0 0 0 0.3rem var(--focus-shadow), 0 4px 16px rgba(74, 95, 193, 0.4);
        outline: none;
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(74, 95, 193, 0.3);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 8px rgba(74, 95, 193, 0.2);
    }

/* Sélecteur de langue amélioré */
.language-selector {
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: rgba(74, 95, 193, 0.05);
}

.language-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

    .language-link.active {
        font-weight: 600;
        color: white;
        background-color: var(--focus-color);
        transform: scale(1.05);
    }

    .language-link:hover {
        color: var(--focus-color);
        background-color: rgba(74, 95, 193, 0.1);
        transform: translateY(-1px);
    }

    .language-link:focus {
        outline: 2px solid var(--focus-color);
        outline-offset: 2px;
        color: var(--focus-color);
    }

.separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

/* Lien du site web */
.website-link {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Section carrousel */
.carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Nouveau slide "All-In-One Integrated Systems" */
.integrated-systems-slide {
    background: linear-gradient(135deg, var(--login-gradient-top) 0%, var(--login-gradient-bottom) 100%);
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

.integrated-systems-content {
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /*justify-content: center;*/
    align-items: center;
    /*padding: 3rem 2rem;*/
    text-align: center;
    color: white;
    /*position: relative;*/
}

/* Container pour l'image jigsaw */
.jigsaw-image-container {
    /*position: absolute;*/
    /*top: 8%;
            left: 50%;*/
    /*transform: translateX(-50%);*/
    /*  width: 400px;
            height: 400px;*/
    /*   display: flex;
            align-items: center;
            justify-content: center;*/
}

.jigsaw-image {
    /*max-width: 100%;
            max-height: 100%;*/

    object-fit: cover;
    animation: floatJigsaw 6s ease-in-out infinite;
}

/* Logo Capture Solutions */
.capture-solutions-logo {
    display: flex;
    align-items: center;
       gap: 0.75rem;
    margin: 5%;
}

.cs-icon {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.cs-text {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
}

/* Contenu principal */
.main-content {
    max-width: 600px;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.main-description {
    /*line-height: 1.6;*/
    font-size: 12px;
    
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Indicateurs de slide personnalisés */
.slide-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

    .indicator.active {
        background-color: white;
        transform: scale(1.2);
    }

/* Image en haut */
.carousel-image {
    height: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Section de contenu en bas - Tous avec le même dégradé */
.carousel-content-section {
    height: 50%;
    background: linear-gradient(135deg, var(--login-gradient-top) 0%, var(--login-gradient-bottom) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 2rem;*/
    position: relative;
}

    .carousel-content-section.green-gradient {
        background: linear-gradient(135deg, var(--login-gradient-top) 0%, var(--login-gradient-bottom) 100%);
    }

    .carousel-content-section.red-gradient {
        background: linear-gradient(135deg, var(--login-gradient-top) 0%, var(--login-gradient-bottom) 100%);
    }

.carousel-content {
    text-align: center;
    color: white;
    max-width: 90%;
    /*width: 80%;*/
}

/* Logo de marque dans le carrousel */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.brand-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

    .brand-icon.green {
        color: var(--primary-green);
    }

    .brand-icon.red {
        color: var(--primary-red);
    }

.brand-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* Contenu du carrousel */
.carousel-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel-description {
    /* font-size: 1rem;*/
    font-weight: 300;
    /* line-height: 1.5;*/
    /*margin-bottom: 1rem;*/ 
    opacity: 0.9;
    font-size: 12px;
    /*line-height: 1.6;*/
    max-width: 500px;
    margin: 0 auto;
}

/* Icônes de produits */
.product-icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    gap: 0.75rem;

}

.product-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*font-size: 1rem;*/
    /*font-weight:  100;*/
    /*margin-bottom: 0.3rem;*/
    /*border: 2px solid white;*/
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
}

    .product-icon.green-light {
        background-color: var(--primary-green-light);
        color: white;
    }

    .product-icon.green {
        background-color: var(--primary-green);
        color: white;
    }

    .product-icon.red {
        background-color: var(--primary-red);
        color: white;
    }

    .product-icon.orange {
        background-color: #fd7e14;
        color: white;
    }

    .product-icon.blue {
        background-color: var(--primary-blue);
        color: white;
    }

.product-item span {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    font-weight: 300;
}

/* Indicateurs du carrousel */
.carousel-indicators {
    bottom: -1.5%;
    z-index: 10;
}

    .carousel-indicators li {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
        margin: 0 0.2rem;
        transition: all 0.3s ease;
    }

    .carousel-indicators .active {
        background-color: white;
        transform: scale(1.2);
    }

/* Animations */
@keyframes floatJigsaw {
    0%, 100% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes focusRing {
    0% {
        box-shadow: 0 0 0 0 var(--focus-shadow);
    }

    70% {
        box-shadow: 0 0 0 0.4rem transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.carousel-content > * {
    animation: fadeInUp 0.8s ease-out;
}

.carousel-content .brand-logo {
    animation-delay: 0.1s;
}

.carousel-content .carousel-title {
    animation-delay: 0.2s;
}

.carousel-content .carousel-description {
    animation-delay: 0.3s;
}

.carousel-content .product-icons {
    animation-delay: 0.4s;
}

/* Animation pour le contenu du slide intégré */
.integrated-systems-content > * {
    animation: fadeInUp 1s ease-out;
}

.integrated-systems-content .jigsaw-image-container {
    animation-delay: 0.1s;
}

.integrated-systems-content .capture-solutions-logo {
    animation-delay: 0.2s;
}

.integrated-systems-content .main-content {
    animation-delay: 0.4s;
}

.integrated-systems-content .slide-indicators {
    animation-delay: 0.6s;
}

/* Transitions fluides */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* Animation pour les éléments focusés */
.form-control:focus,
.btn-login:focus,
.form-check-input:focus {
    animation: focusRing 0.6s ease-out;
}

/* États de validation améliorés */
.form-control.is-valid {
    border-color: var(--primary-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.38 1.38'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: var(--primary-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Amélioration de l'accessibilité */
.form-control:focus,
.btn-login:focus,
.language-link:focus,
.password-toggle:focus,
.form-check-input:focus {
    outline: none;
}

/* Indicateur visuel pour la navigation au clavier */
body.keyboard-navigation *:focus {
    outline: 2px solid var(--focus-color) !important;
    outline-offset: 2px !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .carousel-section {
        display: none;
    }

    .login-section {
        min-height: 100vh;
    }
    
}

@media (max-width: 767.98px) {
    .login-container {
        padding: 1rem;
        max-width: 100%;
    }

    .login-title {
        font-size: 1rem;
    }

    .carousel-content {
        padding: 1.5rem;
    }

    .carousel-title {
        font-size: 1.8rem;
    }

    .product-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .product-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }



    /* Responsive pour le slide intégré */
    .main-title {
        font-size: 2.2rem;
    }

    /* .jigsaw-image-container {
                width: 200px;
                height: 200px;
                top: 10%;
            }*/

    /* .capture-solutions-logo {
                margin-top: 1rem;
            }*/

    /* Responsive pour les inputs */
    .form-control {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 0.875rem;
        font-size: 1rem;
    }

    .password-toggle {
        right: 0.875rem;
        font-size: 1rem;
    }

    .form-control.password-field {
        padding-right: 2.75rem;
    }
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .login-section {
        padding: 1rem;
    }

    .login-container {
        padding: 0.5rem;
        
    }

    
    .product-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-content-section {
        padding: 1rem;
    }

    /* Responsive pour le slide intégré */
    .main-title {
        font-size: 1.8rem;
    }

    .main-description {
       /*font-size: 0.9rem;*/ 
        font-weight: 300;
        
    }

    /*.jigsaw-image-container {
                width: 150px;
                height: 150px;
            }*/

    /*  .integrated-systems-content {
                padding: 2rem 1rem;
            }*/

    /* Responsive pour les inputs sur mobile */
    .form-control {
        padding: 0.625rem 0.875rem 0.625rem 2.5rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .btn-login {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .input-icon {
        left: 0.75rem;
        font-size: 0.95rem;
    }

    .password-toggle {
        right: 0.75rem;
        font-size: 0.95rem;
    }

    .form-control.password-field {
        padding-right: 2.5rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .jigsaw-image {
        animation: none;
    }

    .btn-login::before {
        display: none;
    }

    .cs_logo_container {
        width: 30px !important;
        height: 30px !important;
    }

    /* Sélecteur de langue */
    .language-selector {
        margin-bottom: 2rem;
        padding: 0.5rem;
        border-radius: 8px;
        background-color: rgba(74, 95, 193, 0.05);
        text-align: center;
    }

    .language-link {
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        display: inline-block;
    }

        .language-link.active {
            font-weight: 600;
            color: white;
            background-color: var(--focus-color);
        }

        .language-link:hover {
            color: var(--focus-color);
            background-color: rgba(74, 95, 193, 0.1);
        }

    .separator {
        margin: 0 0.5rem;
        color: var(--text-light);
    }

}

#submit{
    color: white;
}

.ph-spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    color: white;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

 .carousel-item-next:not(.carousel-item-start){
 transform: translateX(0%) !important;
}
 .form-control{
     height: 45px !important;
 }