* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.container {
    max-height: 90vh; /* Limita la altura máxima del contenedor al 90% de la altura de la ventana */
    overflow-y: auto; /* Activa el desplazamiento vertical si el contenido excede el alto */
    width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}
@media (min-width: 1000px) {
    .container {
        width: 450px;
    }

    .container-register{
        width: 700px;
    }
}

h2 {
    margin-bottom: 20px;
}

.title-user{
    margin-top: 10px;;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px;
    font-size: 1rem;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

button:hover {
    background: #151515;
}

p {
    margin-top: 20px;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

/* Animaciones de transición */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.text-alert{
    color: red;
    margin: 10px 0;
}