body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-box {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

h1 {
    font-size: 28px;
    margin-bottom: 25px;
}

h4 {
    display: flex;
    text-align: left;
}

.white {
    color: #ffffff;
}

.blue {
    color: #00e5ff;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 90%;
    padding: 12px 15px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    background-color: #2c2f36;
    color: #ffffff;
    font-size: 16px;
    appearance: none;
}

select:invalid {
    color: #999;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #00e5ff;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #00c3d4;
}

.error-msg {
    color: #ff5c5c;
    margin-bottom: 15px;
    font-weight: bold;
}

.register-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #00e5ff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Flèche personnalisée pour les selects */
select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px; /* espace pour la flèche */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 97%;
}

/* Fix pour Firefox (ajout d’un wrapper pour éviter la double flèche native) */
select::-ms-expand {
    display: none;
}
