@import "form.css";

body {
    background: url('../images/background/signup.jpg') no-repeat center center fixed;
    background-size: cover; /* Assure que l'image prend toute la largeur */
    background-attachment: fixed;
    background-position: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.error-message, .success-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.error-message {
    background-color: #FF4D4D;
    color: white;
}

.success-message {
    background-color: #4CAF50;
    color: white;
}

.password-overlay {
    display: none;
    position: absolute;
    top: 0; /* Aligner avec le haut du champ */
    left: 105%; /* Décalage à droite */
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    z-index: 10;
    text-align: left;
}

.password-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-overlay li {
    margin-bottom: 5px;
}

.password-overlay .valid {
    color: #4CAF50; /* Vert */
}

.password-overlay .invalid {
    color: #FF5252; /* Rouge */
}

/* ✅ Bouton discret pour revenir à l'accueil */
.btn-home-small {
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FF6600;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-home-small:hover {
    background: #FF6600;
    transform: scale(1.05);
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .btn-home-small {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
