﻿body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #F5F5F5; /*url("~/../../../Images/index-bg.png") no-repeat center center fixed;*/
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.user_card {
    height: 400px;
    width: 350px;
    margin-top: auto;
    margin-bottom: auto;
   /* background: #f8f8f8;*/
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
/*    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
    border-radius: 5px;
}

.brand_logo_container {
    position: absolute;
    height: 160px;
    width: 160px;
    top: -160px;
    border-radius: 50%;
    border: 2px solid #F5F5F5;
    text-align: center;
    overflow: hidden;
}

.brand_logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-top: 35px;
    align-items: center;
}

.form_container {
    margin-top: 100px;
}

.login_container {
    padding: 0 2rem;
}
/* Forms */
form input.error {
    border-color: var(--frm-error-color) !important;
}

form label.error {
    font-size: small;
    color: var(--frm-error-color);
    display: none !important;
}

form select.error {
    border-color: var(--frm-error-color) !important;
}

form input.valid {
    border-color: var(--frm-success-color) !important;
}

form select.valid {
    border-color: var(--frm-success-color) !important;
}
/*********/
/* Footer */
.footer {
    zoom:80%;
    text-align: center;
    width: 100%;
    background-color: var(--footer-bg-color);
    color: var(--footer-lt-color);
    padding: 10px 0px;
    bottom: 0;
    position: absolute;
}
/**********/
/* Alerts */
.alert-container {
    bottom: 20px;
    position: fixed;
    width: 30%;
    right: 15px;
    margin-left: 10px;
    float: right;
    border-radius: 4px;
    border: 0px solid transparent;
    background: transparent;
    z-index: 1100;
}

.alert-remove-margin {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    cursor: pointer;
}
/***************/
/* Loading mask */
#loadingMask {
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1051;
    position: fixed;
    opacity: 0.3;
    text-align: center;
    background: url("/Images/load-mask.gif") no-repeat scroll center center gray;
    display: none;
    background-size: 10rem;
}
/****************/

.input-group > .custom-select:not(:last-child), .input-group > .form-control:not(:last-child) {
    /*border-radius: 0px 40px 40px 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);*/
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.input-group > .form-control {
    width:350px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.input-group > .input-group-append > .btn {
    /*border-radius: 0px 30px 30px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.btn-primary {
    width: 350px;
    height: 35px;
    margin: 5px;
    padding: 2px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    background-color: #1e73be;
}

.boton{
    width:350px;
}
.color-tenant {
    color: white;
    position: absolute;
    right: 5px;
    margin-top:10px;
    /*border-radius: 50%;*/
    /*background: var(--gradient-2, linear-gradient(90deg, #2AF598 0%, #009EFD 100%));*/ 
    display: flex;
    /*transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);*/
}
    
.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 0%);
}

.icon {
    color: #000;
}

.lblP {
    color: #000;
    font-size: 13px;
    font-family: Arial, sans-serif;
    margin: 5px;
}

.titleLo {
    width: 330px;
    height: 100px;
    position: absolute;
    top: -3px;
    justify-content: center !important;
    text-align: center;
}

    .titleLo small {
        font-size: 15px;
        color: #4d5156;
    }

a {
    color: #1e73be;
    background-color: transparent;
    font-size: 18px;
    text-decoration: none;
}

button, input, optgroup, select, textarea {
    margin: 6px;
    font-family: inherit;
}
/* Paneles 2FA / contraseña nueva: menos hueco bajo el título (login.js ajustarTarjeta pone .en-panel; el login
   conserva sus 100px). */
.user_card.en-panel .form_container {
    margin-top: 80px;
}

/* Paneles del código (2FA) y de la contraseña nueva: el botón principal mide lo mismo que los campos y queda
   alineado con ellos (la regla global de arriba les pone margen a botones e inputs y .btn-primary mide 350px). */
#pnl2FA .input-group > .form-control,
#pnlCambioPassword .input-group > .form-control,
#pnlCambioPassword .input-group-append > .btn {
    margin: 0;
}

#pnl2FA .boton,
#pnlCambioPassword .boton {
    width: 100%;
}

/* El campo del código ocupa el ancho del panel, igual que "Verificar" (la regla global le da 350px fijos; con
   width: auto tomaba su ancho natural, más grande que el panel por la letra de 20px, y no se encogía). */
#pnl2FA .input-group > .form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
}

    #pnl2FA .boton .btn-primary,
    #pnlCambioPassword .boton .btn-primary {
        width: 100%;
        margin: 0;
    }

#pnlCambioPassword .input-group-append > .btn {
    border-color: #ced4da;
    color: #495057;
    background-color: #fff;
}

    #pnlCambioPassword .input-group-append > .btn:hover {
        background-color: #f1f3f5;
    }

/* Ojo e "i" pegados al campo, uno junto al otro. La regla global .input-group-append > .btn usa position: absolute
   (pensada para el ojo único del login) y aquí encimaba los dos botones. */
#pnlCambioPassword .input-group > .form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#pnlCambioPassword .input-group > .input-group-append > .btn {
    position: static;
    border-radius: 0;
}

    #pnlCambioPassword .input-group > .input-group-append > .btn:last-child {
        border-top-right-radius: 7px;
        border-bottom-right-radius: 7px;
    }

/* Título y texto de los paneles del código y de la contraseña nueva, un poco más grandes para leerse mejor. */
#pnl2FA .lblP,
#pnlCambioPassword .lblP {
    font-size: 15px;
    font-weight: 600;
}

#pnl2FA small,
#pnlCambioPassword small {
    font-size: 14px;
}

/* "i" con el formato de la contraseña, junto al título del panel: pequeña y gris para que sea discreta. */
#pnlCambioPassword .info-formato-password {
    font-size: 16px;
    color: #9aa0a6;
    margin-left: 6px;
    line-height: 1;
    flex-shrink: 0;
}

    /* El título no se recorta ni se encima con la "i". */
    #pnlCambioPassword .d-flex > .lblP {
        white-space: nowrap;
        margin-right: 0;
    }

    #pnlCambioPassword .info-formato-password:hover,
    #pnlCambioPassword .info-formato-password:focus {
        color: #495057;
    }

/* Enlaces del 2FA ("Reenviar código" y "Volver al inicio de sesión"): botones con aspecto de enlace, sin el
   margen global de los botones ni el padding de .btn, alineados con el texto que los acompaña. */
#pnl2FA .reenvio-2fa {
    font-size: 14px;
}

#pnl2FA .btn-link {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font-size: 14px;
    color: #1e73be;
}

    /* Gris y sin clic mientras corre la espera (login.js iniciarContador2FA lo deshabilita); azul cuando termina. */
    #pnl2FA #btnReenviar2FA:disabled {
        color: #9aa0a6;
        cursor: default;
        text-decoration: none;
        opacity: 1;
    }

    #pnl2FA .btn-link.volver-2fa {
        font-size: 13px;
        color: #6c757d;
    }

        #pnl2FA .btn-link.volver-2fa:hover,
        #pnl2FA .btn-link.volver-2fa:focus {
            color: #495057;
        }
