body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #004080, #0077aa);
    color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Cubre toda la altura del viewport */
    overflow-y: auto; /* Permite desplazamiento vertical */
    box-sizing: border-box; /* Maneja correctamente márgenes y paddings */
}

.form-container {
    background: #022c43;
    padding: 20px 30px 5px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; /* Evita desbordamientos */
    margin: 20px 0; /* Asegura separación del contenido en pantallas pequeñas */
}


.form-container h1 {
    font-size: 1.8rem;
    margin: 10px;
    color: #fff;
}
form p{font-size: 17px;}
form p a{text-decoration: none;
color: #0099cc;
font-size: 17.5px;}

label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    color: #9bc1dc;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #0077aa;
    border-radius: 8px;
    background: #f8f8f8;
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background: #0099cc;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#togglePassword{left: 0;
margin-top: 10px;}

#submitPassword{margin-top: 10px;
    margin-bottom: 0;
background-color: #0099cc;
color:#fff;
font-size: 1rem;
font-weight: bold;
transition: background 0.3s ease;}

#submitPassword:hover{
    background: #0077aa;
    transition: background 0.3s ease;
}

button:hover {
    background: #0077aa;
}

.message {
    font-size: 1rem;
    margin-top: 15px;
}

.toggle-container {
    position: relative;
    text-align: left;
}

.toggle-password {
    position: absolute;
    top: 38px;
    right: 10px;
    background: none;
    border: none;
    color: #0077aa;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #004080;
}
.olvida-contra{font-size: 17px;}
.olvida-contra a{text-decoration: none;
color: #0099cc;
font-size: 17.5px;}

.link{text-decoration: none;
color: #291d9b;}

@media (max-width: 577px) {
    .form-container {
        width: 90%; /* Ajusta el ancho al viewport */
        margin: 20px 10px; /* Añade margen para evitar cortes */
    }

    body {
        flex-direction: column;
        justify-content: flex-start; /* Permite que el contenido fluya hacia abajo */
    }
    .toggle-password:hover{background-color: inherit;
        color: #0077aa;}
    
}

/* Separador para el botón de Google */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9bc1dc;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #0077aa;
}

.separator span {
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Ajustes para el botón de Google */
.g_id_signin {
    margin-bottom: 20px;
        display: flex;
    justify-content: center;
}
