/* Corps de la page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #1e1e2f, #141421);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur */
.signup-container {
    background: linear-gradient(145deg, #252535, #1e1e2f);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

.signup-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4ee1a6;
    text-align: center;
    font-weight: 700;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Champs de saisie */
input {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: #2a2a3f;
    color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    box-sizing: border-box;
}

input::placeholder {
    color: #888;
    font-size: 13px;
}

input:focus {
    outline: none;
    border: 2px solid #4ee1a6;
    box-shadow: 0 0 10px rgba(78, 225, 166, 0.5);
}

/* Bouton */
button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, #4ee1a6, #36c790);
    color: #000;
    font-weight: bold;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #2bbb4b;
    transform: scale(1.03);
}

/* Messages */
.message {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.message.error {
    color: #e74c3c;
}

/* Champs de mot de passe */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #4ee1a6;
}

/* Animation */
.signup-container, button {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
