@import "form.css";

body {
    background: url('../images/background/login.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* Messages d'erreur et de succès */
.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;
}

/* ✅ 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);
}

/* ✅ Message de succès */
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* ✅ Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    animation: fadeIn 0.5s ease-in-out;
}


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