﻿.content-wrapper {
    background-image: url(../../images/bg_login.jpg) !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.imagenDestacadaLogin {
    position: fixed;
    right: 0px;
    top: 0px;
    width: max(25vw, 200px);
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-image: url(../../images/sbd.svg);
    opacity: .7;
}

.login-wrapper {
    align-self: center;
    max-width: 380px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 20px 0 rgb(0 0 0 / 34%);
    position: relative;
    padding-bottom: 30px;
}

    .login-wrapper input[type=text], .login-wrapper input[type=password] {
        font-size: 20px;
    }

    .login-wrapper .mdl-textfield {
        margin-bottom: 10px;
    }

    .login-wrapper input[type=submit] {
        position: relative;
        margin: 30px 0 0 auto;
        width: 100%;
        font-size: 16px;
        border-radius: 20px;
        padding: 8px;
        line-height: normal;
    }

    .login-wrapper h6 {
        padding: 15px 30px;
    }

    .login-wrapper h2 {
        background-color: rgb(40 46 56 / 10%);
        padding: 30px;
    }

        .login-wrapper h2 img {
            padding: 0;
        }

    .login-wrapper form {
        padding: 0;
        width: 100%;
        min-height: 170px;
        position: relative;
    }

        .login-wrapper form .form {
            padding: 30px;
            padding-bottom: 0;
            width: 100%;
        }


.version-inweb {
    position: absolute;
    left: 50%;
    bottom: 0;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-default);
    border-radius: 10px 10px 0 0;
    background-color: var(--mas-oscuro-2);
    padding: 0 10px;
    opacity: .7;
    transform: translateX(-50%);
}

#wrongLoginContainer {
    background-color: rgba(230,20,20,.1);
    border-radius: 10px;
    padding: 10px 5px;
}

#wrongLoginText {
    margin: 0;
    font-size: 13px !important;
}

.sso-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    width: 100%;
    margin: 10px 0 0px 0;
    position: relative;
}

    .sso-container:before {
        content: 'o entrar con sso';
        height: 20px;
        top: 0px;
        text-align: center;
        padding: 0 10px;
        background-color: var(--light);
        z-index: 1;
        align-self: center;
        margin: 10px 0;
    }

    .sso-container:after {
        content: '';
        border: 1px solid var(--primary);
        border-bottom: 0;
        height: 0px;
        position: absolute;
        width: 100%;
        top: 20px;
        opacity: .3;
    }

    .sso-container .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 10px 0px 10px 0px;
        font-size: 15px;
        font-weight: 600;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        text-decoration: none;
        color: var(--primary);
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        margin: 0 20px 5px 20px;
        position: relative;
    }

        .sso-container .btn span {
            color: inherit;
        }

        .sso-container .btn:before {
            content: '';
            position: absolute;
            left: 2px;
            font-size: 20px;
            height: 36px;
            width: 36px;
            padding: 0px;
            border-radius: 30px;
            background-size: 20px;
            background-repeat: no-repeat;
            background-position: center center;
            background-color: var(--white);
        }

        .sso-container .btn.btnMicrosoft {
            background-color: var(--white);
        }

            .sso-container .btn.btnMicrosoft:hover {
                background-color: #397dda;
                color: var(--white);
            }

            .sso-container .btn.btnMicrosoft:before {
                background-image: url(/images/microsoft.svg);
            }

            .sso-container .btn.btnMicrosoft:hover:before {
                color: var(--white);
            }

        .sso-container .btn.btnGoogle {
            background-color: var(--white);
        }

            .sso-container .btn.btnGoogle:hover {
                background-color: #de523f;
                color: var(--white);
            }

            .sso-container .btn.btnGoogle:before {
                background-image: url(/images/google.svg);
            }

            .sso-container .btn.btnGoogle:hover:before {
                color: var(--white);
            }

.containerSSO {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .containerSSO .datosSSO {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
        padding: 20px;
        background-color: var(--white);
        border-radius: 10px;
        box-shadow: 0 10px 10px rgba(0,0,0,.1);
        max-width: 90%;
    }

    .containerSSO .imagenSSO {
        width: 60px;
        height: 60px;
        background-size: 40px;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: var(--mas-oscuro-3);
        border-radius: 10px;
        margin-right: 10px;
        flex-shrink: 0;
    }

        .containerSSO .imagenSSO.Google {
            background-image: url(/images/google.svg);
        }

        .containerSSO .imagenSSO.Microsoft {
            background-image: url(/images/microsoft.svg);
        }

    .containerSSO .nombreSSO {
        font-size: 22px;
        font-weight: bold;
        line-height: 24px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }

    .containerSSO .emailSSO {
        margin-top: 5px;
        font-size: 13px;
        font-weight: normal;
        line-height: 15px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }

    .containerSSO .loaderSSO {
        margin-top: 30px;
        font-size: 15px;
        font-weight: normal;
    }

.spinnerSSO {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loadingContainer {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    z-index: 10;
    transition: all 500ms;
    padding: 20px 0;
}

    .loadingContainer.show {
        opacity: 1;
    }

    .loadingContainer .loadingText {
        margin: 10px 0 0 0;
    }

    .loadingContainer .loaderSSO {
        margin: 10px 0 0 0;
        flex-direction: column;
        position: relative;
    }

        .loadingContainer .loaderSSO .spinnerSSO {
            margin: 0;
            width: 80px;
            height: 80px;
            border-width: 1px;
            margin-bottom: 15px;
        }

        .loadingContainer .loaderSSO img {
            position: absolute;
            width: 40px;
            height: 40px;
            margin-left: -20px;
            left: 50%;
            margin-top: -20px;
            top: 40px;
        }

@media screen and (max-width: 600px) {
    .login-wrapper {
        margin: 0 5%;
    }

    .contenedor::before {
        opacity: 1;
    }

    .content-wrapper {
        background-image: none !important;
        background-color: var(--mas-oscuro-2);
        padding: 0;
    }

    .imagenDestacadaLogin {
        display: none;
    }
