/* =======================
   FUENTES
   ======================= */
@font-face {
    font-family: "Lovelo";
    src: url("../fonts/Lovelo-Black.eot");
    src: url("../fonts/Lovelo-Black.eot?#iefix") format("eot"),
        url("../fonts/Lovelo-Black.woff") format("woff"),
        url("../fonts/Lovelo-Black.ttf") format("truetype"),
        url("../fonts/Lovelo-Black.svg") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.eot');
    src: url('../fonts/Poppins-Regular.eot?#iefix') format('eot'),
        url('../fonts/Poppins-Regular.woff') format('woff'),
        url('../fonts/Poppins-Regular.ttf') format('truetype'),
        url('../fonts/Poppins-Regular.svg') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @font-face {
        font-family: "Lovelo";
        src: url("../fonts/Lovelo-Black.svg") format("svg");
    }

    @font-face {
        font-family: 'Poppins';
        src: url('../fonts/Poppins-Regular.svg') format('svg');
    }
}

/* =======================
   END FUENTES
   ======================= */

/* =======================
   POR DEFECTO
   ======================= */

* {
    border-spacing: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    line-height: normal;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px !important;
}


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    background-color: var(--color-main-bg);
    overflow: hidden;
    letter-spacing: 0.0312rem;
    color: var(--color-text-black);
    font-size: 0.875rem;
}

.lovelo {
    font-family: "Lovelo" !important;
    color: var(--color-text-main);
}

small {
    font-size: 11px !important;
    padding: 0px;
    margin: 0px;
}

input:focus {
    box-shadow: none !important;
}

a {
    color: var(--color-text-black-grey);
}

a:hover {
    color: var(--color-main-selection);
}

a:not([href]):not([class]) {
    color: var(--color-text-black-grey);
}

a:not([href]):not([class]):hover {
    color: var(--color-main-selection);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-black-grey);
}

:focus {
    outline: none;
}

::-moz-selection {
    /* Code for Firefox */
    color: var(--color-main-selection);
    background: rgba(var(--color-rgb-main-selection), 0.3);
}

::selection {
    color: var(--color-main-selection);
    background: rgba(var(--color-rgb-main-selection), 0.3);
}

ul {
    padding-left: 20px;
}

p {
    color: var(--color-text-black-grey);
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid var(--color-secondary-bg);
}

.text-primary{
    color: var(--color-main) !important;
}

/* =======================
   END POR DEFECTO
   ======================= */
/* =======================
   BODY
   ======================= */

#main-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#form-container {
    position: relative;
    width: 40%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

#form-container>a {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

#form-container>a>img {
    width: 100%;
    max-width: 250px;
}

#form-container>form {
    width: 100%;
    max-width: 350px;
    padding: 20px 0px;
    display: inline-flex;
    flex-flow: column nowrap;
    align-items: flex-end;
}

.input-form-group {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.input-form-group>span {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--color-main);
    font-weight: bold;
}

.input-form-group>input {
    width: 100%;
    flex-grow: 2;
    font-weight: bold;
    font-size: 16px;
    margin: 0px;
    padding: 5px 35px;
    border-radius: 6px;
    background-color: transparent;
    border: 3px solid var(--color-main);
}

.input-form-group>input.is-invalid {
    color: var(--color-red);
    border: 3px solid var(--color-red);
}


#view-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--color-main);
    font-weight: bold;
    cursor: pointer;
    transition: all 250ms ease;
    box-shadow: none;
}

.input-form-group>span.is-invalid, #view-password.is-invalid{
    color: var(--color-red);
}


#view-password:hover {
    box-shadow: var(--btn-box-shadow) var(--color-main);
}

#image-bg {
    position: relative;
    width: 60%;
    height: 100%;
    background-image: url(../assets/img/login.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#image-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--color-rgb-main), 0.5);
}

.bmalert {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    padding: 20px;
    border-radius: 6px;
    z-index: 20;
    transform: translate(-50%, 100%);
    transition: all 200ms ease;
}
.bmalert.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0%);
}

.bmalert.hide {
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 100%);
}

.bmalert.info {
    background-color: var(--color-btn-resource);
    color: var(--color-full-white);
    box-shadow: var(--btn-box-shadow) var(--color-btn-resource);
}
.bmalert.danger {
    background-color: var(--color-red);
    color: var(--color-full-white);
    box-shadow: var(--btn-box-shadow) var(--color-red);
}
.bmalert>span{
    font-size: 30px;
    padding-right: 20px;
    font-weight: bold;
    color: var(--color-full-white);
}
.bmalert>aside{
    font-size: 12px;
    text-align: left;
    color: var(--color-full-white);
}
.bmalert>section{
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
}
.bmalert>section>p{
    font-size: 12px;
    text-align: left;
    color: var(--color-full-white);
    margin-bottom: 5px;
}
.bmalert>i{
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: var(--color-full-white);
}

@media screen and (max-width:991px) {
    .bmalert {
        max-width: calc(100% - 30px);
        bottom: 15px;
    }

    #form-container {
        width: 100%;
    }

    #image-bg {
        display: none;
    }
}

/* =======================
   END BODY
   ======================= */
button, select {
    text-transform: none;
}

button, input {
    overflow: visible;
}

button, input, optgroup, select, textarea {
    margin: 0;
}

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: button;
    border-radius: 4px;
}

/* Estilos base para botones */
.btn {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    text-shadow: none;
    font-size: 14px;
    border-width: 2px;
    border-style: solid;
    font-weight: normal;
    white-space: normal;
    word-wrap: break-word;
    touch-action: manipulation;
    cursor: pointer;
    will-change: opacity, transform;
    transition: all 0.3s ease;
    color: var(--color-full-white);
}

.btn>aside {
    padding-left: 10px;
}

.btn>i.sm, .btn>span.sm {
    font-size: 11px;
}

.btn>i.md, .btn>span.md {
    font-size: 18px;
}

/* Estado hover y focus genérico */
.btn:hover, .btn:focus {
    box-shadow: none;
}

.btn>i, .btn>span {
    font-size: 22px;
}

/* Estado activo genérico */
.btn:active,
.btn.active,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
    color: var(--color-full-white);
    border-color: inherit;
}

.btn:disabled {
    transition: all 0.3s ease;
    opacity: .4;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--color-main);
    border-color: var(--color-main);
    box-shadow: var(--btn-box-shadow) var(--color-main);
}

#footer-copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    align-items: center;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 11px;
    text-align: justify;
}

#footer-copyright>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 5px;
    font-weight: bold;
}

#footer-copyright>div>div {
    margin-left: 10px;
}

#footer-copyright>div>span {
    font-size: 25px;
    padding-right: 10px;
}
