body {
    background-color: black;
    background-image: url('Imagenes/Dark_background_1920x1080.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Formularios */
form {
    font-size: 125%;
    background-color: #3c3c3c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
select {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #FFF;
}

/* Estilos para la alerta */
.alert {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background-color: #f44336;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.alert.hide {
    opacity: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

/* Responsividad */
@media (max-width: 480px) {
    .alert {
        width: 95%;
    }
}

/* Estilos del formulario */
.form-container {
    width: 100%;
    max-width: 400px;
    background-color: #333;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
    color: white;
}

.form-container label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
}

.form-container input[type="text"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #444;
    color: #fff;
}

.form-container input[type="submit"],
.form-container input[type="button"] {
    width: 100%;
    padding: 12px;
    background-color: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.form-container input[type="submit"]:hover,
.form-container input[type="button"]:hover {
    background-color: #303f9f;
}
form label {
    color: #fff;
}
