@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap');


:root {
    --dark-color: #222222;
    --icon-color: #fff;
    --font-size-p: 14px;
    --color-descrp: #555;
    --color-titre-h3: #3a3a3a;
    --body-color: #f5f6f9;
    --text-color: #666666;
    --border-color: #6666662a;
    --font-siz-p-mobil: 12px;
    --font-size-h1: 16px;
    --main-color: #C33333;
    --main-color1: #C33333;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}


 
 /* Modal Background */
 .modal_login {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
}

/* Modal Display */
.modal_login.modal_login-open {
    display: flex;
}

.modal_login-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal_login-content.modal_login-open {
    transform: translateY(0);
}

.modal_login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal_login-title {
    margin: 0;
    font-size: 16px;
}

.close {
    cursor: pointer;
    font-size: 1.5rem;
}

.modal_login-body {
    padding: 20px;
}



.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
   
   
}

.login-box {
    background-color:var(--icon-color);
    padding: 45px;
    border-radius: 10px;
    width: 450px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Styles pour les champs de saisie avec icône */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 10px 10px 10px 40px; /* Espace pour l'icône */
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    font-family: poppins,sans-serif;
}

.input-box input:focus {
    border-color:var(--color-titre-h3);
}

/* Style pour les icônes dans les champs */
.input-box i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
}

/* Boutons */
.btn-global {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 14px !important;
    cursor: pointer;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-login {
    background-color:var(--dark-color);
    color:var(--icon-color); 
}
 
.btn-login:hover {
    background:none;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}  

button{
    color: var(--dark-color);
    border: 2px solid var(--dark-color); 
    background: none;
    font-size: 14px;
}


button:hover {
    background-color: var(--color-titre-h3);
    color:var(--icon-color); 
} 

/* Lien et séparateur */
.forgot-password {
    display: block;
    margin-bottom: 20px;
    color: #1877F2;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 40%;
    background-color: #ccc;
    position: absolute;
    top: 50%;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}




/* Icône de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--border-color);
}

.close-btn:hover {
    color:var(--color-titre-h3);
}

@media (max-width:991px) {
.login-box{
width: 100%;
    
}
}

@media (max-width: 680px) {
    .modal_login-body{
       padding: 10px !important;
    }
}
