body {
    font-family: Arial, sans-serif;
    background-color: #18191a;
    color: #e4e6eb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #242526;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3a3b3c;
    color: white;
}

button {
    padding: 10px;
    background-color: #5c5f63;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-link {
    text-align: center;
    margin-top: 10px;
    color: #4da6ff;
    cursor: pointer;
}

#form-inscription{
    padding-top: 20px;
}

.valid {
    color: limegreen;
}
.invalid {
    color: red;
}
ul#password-rules {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
}



.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    user-select: none;
    pointer-events: auto;
}
