:root {
    --naranja: #f17f2d;
    --gris-oscuro: #292823;
    --gris-degradado: #0000007d;
    --blanco: #f1f2ec;
    --azul-claro: #5bb7c5;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

input:focus {
    outline: none;
}

#fondo-login {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(91, 112, 131, 0.4);
    width: 100vw;
    height: 100vh;
}

#login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: var(--naranja);
    border: 3px solid black;
    border-radius: 30px;
    height: fit-content;
    width: fit-content;
    padding: 20px;
    font-weight: bold;
}

#cerrar-login {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 2em;
    z-index: 20;
}

#login img {
    width: 100px;
}

#login h2 {
    margin: auto;
    width: fit-content;
    margin-bottom: 20px;
}

#correo {
    display: flex;
    flex-direction: column;
}

#correo label {
    margin-left: 10px;
}

#login-email {
    width: 360px;
    height: 30px;
    z-index: 5;
    margin: 5px;
    padding: 5px;
    border: 2px solid black;
    font-weight: bold;
    font-size: 17px;
}

#login-password{
    font-size: 17px;
    font-weight: bold;
}

#contra div input {
    width: 320px;
    height: 30px;
    z-index: 5;
    margin: 5px;
    padding: 5px;
    border: 2px solid black;
}

#contra div {
    display: flex;
    align-items: center;
}

#contra label {
    margin-left: 10px;
}

.ojo {
    background-color: var(--blanco);
    border-radius: 50%;
    width: 25px !important;
    height: 25px;
    border: 1px solid black;
    border-radius: 50%;
    cursor: pointer;
}

label {
    font-size: 1.2em;
}

#form-login #div-btn {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

#btn-login {
    width: 200px;
    height: 30px;
    border: 2px solid black;
    border-radius: 30px;
    font-weight: bold;
    background-color: #ee9a5f;
    transition: background-color 0.1s, color 0.2s, box-shadow 0.05s;
    font-size: 18px;
    margin: 10px 0 15px;
}

#btn-login:hover {
    cursor: pointer;
    background-color: #ee9657;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.863);
}

#botones {
    display: flex;
    margin-bottom: 12px;
}

.login-ex {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 180px;
    height: fit-content;
    border: 2px solid black;
    border-radius: 30px;
    margin: 0 5px;
    cursor: pointer;
    background-color: white;
}

.login-ex img {
    border-radius: 30px 0 0 30px;
}

.login-ex h4 {
    padding: 6px;
    border-radius: 0 30px 30px 0;
    width: 100%;
    text-align: left;
    border-left: 2px solid black;

}

#github img {
    width: 29px !important;
    margin-left: 4px;
}

#github h4 {
    background-color: purple;
    color: white;
}

#google img {
    width: 28px !important;
    margin-left: 5px;
}

#google h4 {
    background-color: #5bb7c5;
}

.regis_link {
    display: block;
    margin-top: 5px;
    color: black;
    text-decoration: underline;
}

.regis_link:visited,
.regis_link:active {
    display: block;
    margin-top: 5px;
    color: black;
    text-decoration: underline;
}

.regis_link:hover {
    display: block;
    margin-top: 5px;
    text-shadow: 0 0 7px var(--blanco),
        0 0 11px #f1f2ecb4;
    text-decoration: none;
}
#msj-error{
    margin-bottom: 10px;
}
@media (max-width: 492px) {
    #login {
        width: 90%;
    }

    .todo_login {
        width: 100%;
    }

    #form-login {
        width: 100%;
    }

    #correo {
        width: 100%;
    }

    #login-email {
        width: 95%;
    }

    #botones {
        flex-direction: column-reverse;
        width: 95%;
        align-items: center;
    }

    #google,
    #github {
        width: 90%;
        font-size: 18px;
    }

    #google h4,
    #github h4 {
        text-align: center;
    }

    #google {
        margin-bottom: 8px;
        margin-top: 10px;
    }

    #github {
        margin-bottom: 15px;
    }

    #div-btn {
        width: 100%;
        justify-content: center;
    }

    #btn-login {
        width: 60%;
    }

    #github img,
    #google img {
        height: 30px;
    }
}

@media(max-width: 376px) {
    #login h2 {
        display: block;
        margin-bottom: 10px;
        font-size: 20px;
        width: 240px;
    }

    label {
        font-size: 17px;
    }
}

@media(max-width: 330px) {
    #login h2 {
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
    }

    #google,
    #github {
        width: 90%;
        font-size: 14px;
    }
}