/* Importation de la police Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Réinitialisation et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Conteneur principal */
.regst {
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Formulaire */
#parrainForm {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titre */
h2 {
    text-align: center;
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Champs de saisie */
input[type="text"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
    border-color: #007bff;
}

/* Bouton de soumission */
.submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Message d'erreur */
.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    padding: 5px;
    background: #ffebeb;
    border-left: 4px solid red;
}

/* Icônes */
.input-container .fa-user {
    color: red;
}

.input-container .fa-lock {
    color: green;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    #parrainForm {
        max-width: 90%;
        padding: 15px;
    }

    input[type="text"], select {
        font-size: 0.9rem;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    #parrainForm {
        max-width: 100%;
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }

    input[type="text"], select {
        font-size: 0.85rem;
        padding: 7px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}
