body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #e4002b, #45171e);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-size: 1.6rem;
    padding-bottom: 0;
}

.safe-top {
    display: none;
}

.safe-bottom {
    display: none;
}

/* Estilos base */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 50rem;
    min-width: 30rem;
    padding: 2rem;
    /* min-height: 100vh; */
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 80%;
    max-width: 30rem;
    margin-bottom: 2rem;
}

.form-login {
    width: 100%;
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1.5rem;
    margin: 0.5rem 0;
    color: #757575;
    border: 0;
    border-bottom: 0.2rem solid white;
    border-radius: 3rem;
}

/* Contenedor de la contraseña con icono personalizado */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 4rem;
    /* Espacio para el icono */
}

/* Icono personalizado del ojo */
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    /* Ocultamos el icono hasta que el usuario escriba */
}

.toggle-password img {
    width: 24px;
    /* Ajusta el tamaño según tu imagen */
    height: 24px;
    transition: opacity 0.3s;
}

.toggle-password:hover img {
    opacity: 0.7;
}

/* Checkbox recordar cuenta */
.recordarme {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
    color: white;
    padding-left: 0.5rem;
}

#recordar {
    appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: white;
    border: 0.1rem solid black;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#recordar:checked {
    background-color: #e4002b;
}

button {
    cursor: pointer;
    padding: 1.5rem;
    font-size: 1.8rem;
    margin-top: 1rem;
    color: white;
    background-color: #e4002b;
    border: 0;
    border-radius: 0.5rem;
}

.footer {
    color: white;
}

/* Estilos para cuentas guardadas */
.cuentas-guardadas {
    display: none;
    max-height: 27rem;
    min-width: 30rem;
    overflow-y: scroll;
    /* Mantiene el scroll solo en vertical */
    position: absolute;
    bottom: 0;
    background-color: #f2f2f2;
    border-radius: 3rem 3rem 0 0;
    box-shadow: 5px -5px 15px rgba(0, 0, 0, 0.6);
    width: 100%;
    text-align: center;
    z-index: 999;
    padding-bottom: calc(env(safe-area-inset-bottom));

    /* Ocultar barra de scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE y Edge */
}

.cuentas-guardadas::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari y Edge */
}


.cuentas-guardadas div:first-child {
    padding-left: 5rem;
    padding-right: 5rem;
    max-width: 50rem;
    margin: auto;
}

.cuentas-guardadas h3 {
    padding-top: 1rem;
    margin-bottom: 2rem;
    color: black;
    text-align: left;
    font-weight: 500;
    font-size: 2.1rem;
}

.cuentas-guardadas ul {
    align-items: center;
    list-style: none;
    padding: 0;
}

.cuentas-guardadas li {
    margin-bottom: 1rem;
}


.cuentas-guardadas button {
    background-color: white;
    color: gray;
    padding: 1rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    /* opacity: 0.6; */
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-weight: 300;
}

.flecha {
    margin-left: auto;
    font-weight: 300;
    font-size: 3rem;
    /* Empuja la flecha a la derecha */
}

.avatar-cuenta {
    width: 3.5rem;
    height: 3.5rem;
}

.accederCuentas {
    cursor: pointer;
    position: absolute;
    bottom: 0;
    margin-bottom: 5rem;
    color: white;
}

/* Media Queries */
@media (max-width: 640px) {
    .container {
        padding-bottom: 15rem;
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .cuentas-guardadas button:hover {
        background-color: #e4002b;
        /* opacity: 1; */
        color: white;
    }

    .container {
        max-width: 60rem;
        padding: 4rem;
    }

    .logo img {
        max-width: 35rem;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 2rem;
    }

    button {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 70rem;
        padding: 5rem;
    }

    .logo img {
        max-width: 40rem;
    }

    input[type="text"],
    input[type="password"],
    button {
        font-size: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 102.4rem;
        padding: 6rem;
    }

    .logo img {
        max-width: 45rem;
    }

    input[type="text"],
    input[type="password"],
    button {
        font-size: 2rem;
    }
}