@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0d4d88;
    overflow-x:hidden;
}

/*pages*/
.login-page{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    padding:50px 20px;
    background:linear-gradient(135deg,#0d4d88,#1262a9);
}

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #28a745;
    color: white;
    padding: 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    animation: slideDown 0.4s ease;
}

.background{

    position:absolute;
    inset:0;
    overflow:hidden;

}

/*retours*/
.back{
    position:absolute;
    top:35px;
    left:40px;
    color:white;
    text-decoration:none;
    font-weight:600;
}

.back:hover{
    opacity:.8;
}

/*cards*/
.login-card{
    width:100%;
    max-width:520px;
    background:white;
    border-radius:28px;
    padding:30px;
    position:relative;
    z-index:2;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
}

/*badge*/
.badge{
    display:inline-block;
    background:#fff2df;
    color:#d98d08;
    padding:8px 18px;
    border-radius:30px;
    font-weight:600;
    margin-bottom:25px;
}

.text-danger {
    color: red;
}
.error-input {
    border: 1px solid red !important;
}

/*titres*/
.login-card h1{
    color:#163b63;
    font-size:30px;
    margin-bottom:10px;
}

.description{
    color:#6d7a8d;
    line-height:20px;
    margin-bottom:10px;
}

/*inputs*/
.input-group{
    margin-bottom:20px;
}

.input-group label{
    display:block;
    margin-bottom:5px;
    color:#163b63;
    font-weight:600;
}

.input{
    display:flex;
    align-items:center;
    border:1px solid #d9dee7;
    border-radius:12px;
    padding:0 18px;
    height:48px;
}

.input i{
    color:#b8bec8;
}

.input input{
    flex:1;
    border:none;
    outline:none;
    padding:0 15px;
    font-size:15px;
    background:none;
}

.toggle-password{
    cursor:pointer;
}

/*options*/
.options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:25px 0;
}

.options a{
    text-decoration:none;
    color:#163b63;
    font-weight:600;
}

/*button*/
button{
    width:100%;
    border:none;
    height:50px;
    border-radius:14px;
    background:#ff9800;
    color:white;
    font-size:18px;
    font-weight:500;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 18px 30px rgba(255,152,0,.35);
}

button:hover{
    transform:translateY(-4px);
    background:#f08a00;
}

/*separator*/
.separator{
    display:flex;
    align-items:center;
    margin:25px 0 25px;
}

.separator::before,
.separator::after{
    content:"";
    flex:1;
    height:1px;
    background:#e7e7e7;
}

.separator span{
    padding:0 15px;
    color:#9098a6;
    font-size:10px;
}

/*secure*/
.secure{
    text-align:center;
    color:#6d7a8d;
    font-size:15px;
}

/*responsive*/
@media(max-width:768px){
    .login-card{
        padding:30px;
    }

    .login-card h1{
        font-size:34px;
    }

    .options{
        flex-direction:column;
        gap:18px;
        align-items:flex-start;
    }

    .back{
        left:20px;
        top:20px;
    }
}

/* Style appliqué uniquement sur les écrans de moins de 768px (smartphones) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Taille de texte adaptée */
    }
    
    .login-page {
        width: 100%; /* Les éléments prennent toute la largeur */
    }
}
