body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Animación del fondo */
@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* Crear líneas diagonales en el fondo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    z-index: 0;
    animation: moveBackground 5s linear infinite;
}


/* Contenedor en la parte superior del fondo animado */
.container {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.container:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.logo {
    margin-bottom: 30px;
}

/* 
.logo img {
    max-width: 100px; 
    width: 100%;
    height: auto;
}
 */
.logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

h1 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    text-align: left;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fafafa;
}

input:focus {
    border-color: #007aff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005db3;
}

.secondary-button {
    background-color: #f5f5f7;
    color: #007aff;
    margin-top: 10px;
    font-size: 14px;
}

.secondary-button:hover {
    background-color: #e5e5e7;
}

#forgotCredentialsSection,
#forgotPasswordSection,
#forgotUsernameSection,
#verificationSectionLogin,
#verificationSectionOther {
    display: none;
}

.secondary-button+.secondary-button {
    margin-top: 10px;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding-right: 40px;
    /* Espacio para el ícono */
}

.input-container .toggle-password {
    position: absolute;
    right: 8px;
    top: 35%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

/* Inicialmente ocultamos el contenedor del menú */
#credentialsMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

/* Cuando el menú está abierto */
#credentialsMenu.open {
    max-height: 200px;
    transition: max-height 0.5s ease-in;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

/* Estilos para el botón de cerrar */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}