﻿body {
    font-family: inherit;
    background-color: rgba(135, 146, 141, 0.3);
    font-size: 13px;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

@media (max-width: 700px) {
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.img-head {
    text-align: center;
    margin: 18px 0px;
}

.img-head-logo {
    max-width: 250px;
    width: 100%;
    height: auto
}

.card {
    background-color: #f7f7f7;
    padding: 20px 25px 30px;
    margin: 0 auto 25px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 2px 2px rgba(0,0,0,.3);
    -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.3);
    box-shadow: 0 2px 2px rgba(0,0,0,.3)
}

.card-container.card {
    max-width: 320px;
    background: #fff;
    padding: 15px 15px 0px 15px;
    border: 2.4px solid #6a86a6 !important;
    box-shadow: 5px 8px rgba(106,134,166,.5)
}

.card-img {
    width: 50%;
    display: block;
    margin: 15px auto;
    padding-bottom: 5px;
}

.card-title {
    font-weight: bold;
    text-align: center;
    /*padding: 10px 0 0 0;*/
}

    .card-title:hover, .card-title:active, .card-title:focus {
        color: #6495ed;
        text-decoration: underline
    }

.btn {
    padding: 0;
    height: 36px;
    border-radius: 50px !important;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -o-transition: all .218s;
    -moz-transition: all .218s;
}

.img-captcha-refresh {
    width: 22px;
    vertical-align: middle
}

.form-control, .btn {
    font-size: 0.861rem !important;
}

/*EFECTS BEGIN*/
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fadeIn {
    opacity: 0;
    -webkit-animation: fadeIn ease-in 1;
    -moz-animation: fadeIn ease-in 1;
    animation: fadeIn ease-in 1;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    animation-duration: 1s;
}

    .fadeIn.first {
        -webkit-animation-delay: 0.4s;
        -moz-animation-delay: 0.4s;
        animation-delay: 0.4s;
    }

    .fadeIn.second {
        -webkit-animation-delay: 0.6s;
        -moz-animation-delay: 0.6s;
        animation-delay: 0.6s;
    }

    .fadeIn.third {
        -webkit-animation-delay: 0.8s;
        -moz-animation-delay: 0.8s;
        animation-delay: 0.8s;
    }

    .fadeIn.fourth {
        -webkit-animation-delay: 1s;
        -moz-animation-delay: 1s;
        animation-delay: 1s;
    }
/*EFECTS END*/


.myform {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 1.1rem;
    outline: 0;
    max-width: 380px;
    box-shadow: 4px 5px 19px #666;
}

form .error {
    color: #ff0000;
}

.form-captcha {
    text-transform: uppercase;
}

.myRow {
    display: grid;
    grid-template-columns: 50% 50%;
    text-align: center;
}

/* Fila del captcha: en la tarjeta angosta del login el 50/50 hacia que la imagen empujara
   el icono de refrescar a otra linea. Aca la imagen manda el ancho y el campo toma el resto. */
.myRow.myRow-captcha {
    grid-template-columns: auto 1fr;
    /* start, no center: el .form-group del input lleva margin-bottom de Bootstrap, asi que
       su caja es mas alta que la imagen y centrarla subia el input 8px. Medido en vivo. */
    align-items: start;
    column-gap: 6px;
}

.myRow-captcha > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

/* Se lee como un campo mas: fondo blanco y el mismo borde que .form-control. Un fondo gris
   sobre la tarjeta blanca parecia un bloque pegado. */
.img-captcha {
    display: block;
    width: 100px;
    height: 36px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: #fff;
}

#Captcha {
    text-transform: uppercase;
}
