@import url(/resources/fonts/OpenSans-Regular.ttf);

@font-face {
    font-family: "Open Sans";
    src: url("/resources/fonts/OpenSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Open Sans", sans-serif;
}

h1,
p {
    color: #3a4f54;
}

html {
    width: 100%;
    height: 100%;
}

html {
    background: url(/resources/images/login/portada.svg) no-repeat right -7rem bottom -208px /
        auto 40rem,
        url(/resources/images/login/red.png) no-repeat right 0px top 0px / 500px
        100%,
        url(/resources/images/login/blue.png) no-repeat right bottom 0px / 500px
        100%,
        url(/resources/images/login/hero.svg) no-repeat left bottom / cover;
    animation: background-animation 2s;
}
body {
    min-width: 100%;
    height: 100%;
    animation: background-degradation-animation 2s;
}

.logo {
    padding: 10px;
    position: absolute;
    left: 0px;
    top: 0px;
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 500px;
    box-sizing: border-box;
}
.login-form {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 350px;
    padding: 20px;
}

.login-form h1 {
    margin: 0px;
    margin-bottom: 40px;
    font-size: 20px;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.login-form p {
    margin: 0px;
    font-size: 14px;
    width: 100%;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-form input {
    margin-bottom: 10px;
    border: 1px solid #efefef;
    border-radius: 3px;
    padding: 8px;
    font-size: 16px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
a {
    text-align: end;
    margin-top: 0.5rem;
    font-size: 11px;
}
a:link,
a:visited {
    color: #045491;
    font-weight: bold;
    text-decoration: none;
}
.login-form img {
    display: none;
}
.login-form a {
    text-align: right;
    width: 100%;
    margin-top: 0px;
    font-weight: bold;
}
.login-form button {
    background-color: #002d72;
    border: 1px solid #002d72;
    border: none;
    border-radius: 3px;
    color: #002d72;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: background-color 1s ease-in-out;
    margin-top: 1.2rem;
    width: 180px;
    margin-top: 20px;
}
@keyframes background-degradation-animation {
    from {
        background: white;
    }
    to {
        background: transparent;
    }
}

@keyframes background-animation {
    from {
        background: url(/resources/images/login/portada.svg) no-repeat right -500px bottom -208px /
            auto 40rem,
            url(/resources/images/login/red.png) no-repeat right 0px top -100vh / 500px
            100%,
            url(/resources/images/login/blue.png) no-repeat right bottom -100vh / 500px
            100%,
            url(/resources/images/login/hero.svg) no-repeat left bottom / cover;
    }
    to {
        background: url(/resources/images/login/portada.svg) no-repeat right -7rem bottom -208px /
            auto 40rem,
            url(/resources/images/login/red.png) no-repeat right 0px top 0px / 500px
            100%,
            url(/resources/images/login/blue.png) no-repeat right bottom 0px / 500px
            100%,
            url(/resources/images/login/hero.svg) no-repeat left bottom / cover;
    }
}

@media (max-width: 1250px) {
    .main-container {
        padding-right: 0px;
    }
    .logo {
        display: none;
    }

    body {
        overflow-y: auto;
        min-width: 100%;
        height: 100%;
        border-top: 5vh solid #002d72;
    }

    html{
        border-top: 5vh solid #ff0000;
        overflow: hidden;
        animation: none;
        background: url(/resources/images/login/portada.svg) no-repeat right -7rem bottom -208px /
            auto 40rem,
            url(/resources/images/login/hero.svg) no-repeat left top / cover;

    }
    .login-form {
        margin-top: -15vh;
    }
    .login-form img {
        display: flex;
        margin-bottom: 30px;
    }
    .login-form h1 {
        display: none;
    }
}
