
.layout {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    font-family: sans-serif;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #007bff;
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.error-msg {
    background: #fff5f5;
    color: #c53030;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #feb2b2;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

@media screen and (max-width: 480px) 
{
    .layout 
    {
        max-width: 100%;
        margin: 20px 15px;
        padding: 10px;
    }

    h1 
    {
        font-size: 1.8rem;
        margin-top: 20px;
    }

    input, button 
    {
        height: 50px;
        font-size: 1.1rem;
    }
}



.success-msg {
    background-color: #e6f8f1;
    color: #00ba7c;
    border: 1px solid #00ba7c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.toast-fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.error-msg {
    background-color: #fff1f2;
    color: #f4212e;
    border: 1px solid #fecdd3;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}


.password-wrapper {
    width: 100%;
    margin-bottom: 15px; /* Déplace la marge de l'input vers le wrapper */
}

.password-wrapper input {
    margin-bottom: 0 !important;
}

#toggle-password:hover {
    opacity: 1 !important;
}