@font-face {
    font-family: 'cubanoregular';
    src: url('fonts/cubano-regular-ro-webfont.eot');
    src: url('fonts/cubano-regular-ro-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/cubano-regular-ro-webfont.woff2') format('woff2'),
         url('fonts/cubano-regular-ro-webfont.woff') format('woff'),
         url('fonts/cubano-regular-ro-webfont.ttf') format('truetype'),
         url('fonts/cubano-regular-ro-webfont.svg#cubanoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'avenir_lt_stdmedium';
    src: url('fonts/avenirltstd-medium-webfont.eot');
    src: url('fonts/avenirltstd-medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/avenirltstd-medium-webfont.woff2') format('woff2'),
         url('fonts/avenirltstd-medium-webfont.woff') format('woff'),
         url('fonts/avenirltstd-medium-webfont.ttf') format('truetype'),
         url('fonts/avenirltstd-medium-webfont.svg#avenir_lt_stdmedium') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'avenir_lt_stdroman';
    src: url('fonts/avenirltstd-roman-webfont.eot');
    src: url('fonts/avenirltstd-roman-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/avenirltstd-roman-webfont.woff2') format('woff2'),
         url('fonts/avenirltstd-roman-webfont.woff') format('woff'),
         url('fonts/avenirltstd-roman-webfont.ttf') format('truetype'),
         url('fonts/avenirltstd-roman-webfont.svg#avenir_lt_stdroman') format('svg');
    font-weight: normal;
    font-style: normal;
}

html {
    height:100%;
}

body {
    position:relative;
    background-color: #393939;
    font-family: 'avenir_lt_stdroman';
}

.vertical-center {
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.step_login, .step_register, .step_reset {
    height: -moz-calc(100vh - 130px);
    height: -webkit-calc(100vh - 130px);
    height: -o-calc(100vh - 130px);
    height: calc(100vh - 130px);
    min-height: -moz-calc(100vh - 130px);
    min-height: -webkit-calc(100vh - 130px);
    min-height: -o-calc(100vh - 130px);
    min-height:calc(100vh - 130px);
    background: #393939 url('img/bg_pattern.jpg') repeat bottom center;
}

.step_login,
.step_reset {
    min-height: 550px;
}

.step_register {
    min-height: 1000px;
}

.container {
    z-index: 2;
}

.form {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border: 0px solid #000000;
    overflow: hidden;
}

.form .form-group {
    position: relative;
    margin-bottom: 0px;
}

.form button {
    width: 100%;
    height: 80px;
    border: 0;
}

.alert {
    margin-top: 20px;
    text-align: center;
    background-color: #393939;
    color: #fff;
    font-family: 'avenir_lt_stdmedium';
    font-size: 14px;
    padding: 20px;
}

.footer {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: -130px;
    height: 120px;
    padding-top: 30px;
}

.footer p {
    font-family: 'cubanoregular';
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    margin: 0px 50px 0px 0px;
}

.footer a {
    vertical-align: middle;
}

.footer-image {
    background: url('img/footer.png') no-repeat;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    position: absolute;
    max-width: 1167px;
    width: 100%;
    height: 140px;
    z-index: 1;
}

.link-red, .link-red:hover, .link-red:active, .link-red:visited {
    font-family: 'avenir_lt_stdmedium';
    font-size: 14px;
    font-weight: bold;
    color: #e63f46;
    text-decoration: none;
}

.alt-label {
    position: relative;
    display: inline;
    height: 20px;
    margin-top: 20px;
    margin-left: 10px;
    font-family: 'avenir_lt_stdmedium';
    font-size: 14px;
    color: #999999;
    cursor: pointer;
}

.alt-label a {
    font-weight: bold;
}

.checkbox-group {
    margin-left: 30px;
    padding: 20px 0px;
}

.check {
    display: inline;
    width: 20px;
    height: 20px;
    position: relative;
    margin: 20px auto;
    border: 2px solid #62a843;
}

.check input[type=checkbox] {
    visibility: hidden;
}

.check label {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.check label:after {
    content: '';
    width: 9px;
    height: 5px;
    position: absolute;
    top: 4px;
    left: 4px;
    border: 2px solid #62a843;
    border-top: none;
    border-right: none;
    background: transparent;
    opacity: 0;
    transform: rotate(-45deg);
}

.check label:hover:after {
    opacity: 0.3;
}

.check input[type=checkbox]:checked + label:after {
  opacity: 1;
}

.btn-red {
    font-family: 'cubanoregular';
    font-size: 28px;
    font-weight: normal;
    background-color: #cf0810;
    color: #fff;
}

.btn-red-sm,
.btn-red-sm:hover,
.btn-red-sm:visited {
    font-family: 'cubanoregular';
    font-size: 18px;
    font-weight: normal;
    background-color: #cf0810;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    text-decoration: none;
}

.btn-red-light, .btn-red-light:hover, .btn-red-light:active, .btn-red-light:visited, .btn-red-light:focus {
    font-family: 'cubanoregular';
    font-size: 28px;
    font-weight: normal;
    background-color: #ec1f28;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border: 0px solid #000000;
    text-decoration: none;
    display: inline-block;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        width: 100%;
    }

    .footer {
        padding-top: 10px;
    }

    .footer p {
        margin: 0px 0px 10px 0px;
        display: block;
    }
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position :absolute;
    left:0;
    right:0;
    margin: 0 auto;
    top :45%;
    z-index: 100;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Input field */
.input {
    position: relative;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    width: 100%;
}

.input-underline {
    border-bottom: 1px solid #e4dcda;
}

.input__field {
    position: relative;
    display: block;
    float: right;
    width: 100%;
    height: 60px;
    padding: 30px 30px 12px 30px;
    border: none;
    border-radius: 0;
    color: #393939;
    background: transparent;
    font-family: "avenir_lt_stdmedium";
    font-weight: normal;
    font-size: 18px;
    line-height: 18px;
    -webkit-appearance: none;
}

.input__field:focus {
    outline: none;
}

.input__label {
    position: absolute;
    display: inline-block;
    float: right;
    bottom: 0;
    padding-left: 30px;
    width: 100%;
    height: 60px;
    margin: 0;
    color: #999999;
    font-family: 'cubanoregular';
    font-weight: normal;
    font-size: 14px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.input__label::before,
.input__label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 10px);
}

.input__label::after {
    margin-top: 2px;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.input__label-content {
    position: relative;
    display: block;
    padding: 1.6em 0;
    width: 100%;

    position: absolute;
}

.input__field:focus + .input__label::after,
.input--filled .input__label::after,
.input--always-filled .input__label::after {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.input__field:focus + .input__label .input__label-content,
.input--filled .input__label-content,
.input--always-filled .input__label-content {
    -webkit-animation: anim-1 0.3s forwards;
    animation: anim-1 0.3s forwards;
}

.input--error .input__field {
    color: #c92f27;
}

.input--error:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 20px;
    width: 23px;
    height: 21px;
    background-image: url('img/warning.png');
}

.input__description {
    display: block;
    font-family: 'avenir_lt_stdmedium';
    font-size: 12px;
    color: #999999;
    position: relative;
    margin-left: 30px;
    margin-bottom: 10px;
}

@-webkit-keyframes anim-1 {
    50% {
        opacity: 0;
        -webkit-transform: translate3d(1em, 0, 0);
        transform: translate3d(1em, 0, 0);
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(-1em, -20%, 0);
        transform: translate3d(-1em, -20%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20%, 0);
        transform: translate3d(0, -20%, 0);
    }
}

@keyframes anim-1 {
    50% {
        opacity: 0;
        -webkit-transform: translate3d(1em, 0, 0);
        transform: translate3d(1em, 0, 0);
    }
    51% {
        opacity: 0;
        -webkit-transform: translate3d(-1em, -20%, 0);
        transform: translate3d(-1em, -20%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, -20%, 0);
        transform: translate3d(0, -20%, 0);
    }
}

.lang {
    position: absolute;
    right: 0px;
    top: 30px;
    min-width: 130px;
    z-index: 100;
}

.selLang {
    text-align: right;
    padding-right: 30px;
}

.langRO {
    font-family: 'avenir_lt_stdmedium';
    font-size: 14px;
    color: #393939;
    cursor: pointer;
}

.langEN {
    font-family: 'avenir_lt_stdmedium';
    font-size: 14px;
    color: #393939;
    cursor: pointer;
}

.langRO span,
.langEN span {
    vertical-align: middle;
}

.flagRO {
    display: inline-block;
    width: 35px;
    height: 20px;
    vertical-align: middle;
    background-image: url('img/flag_ro.png');
    background-size: cover;
}

.flagEN {
    display: inline-block;
    width: 35px;
    height: 20px;
    vertical-align: middle;
    background-image: url('img/flag_en.png');
    background-size: cover;
}

.langSelect {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 10px 15px;
    list-style: none;
    background-color: #fff;
    border-radius: 5px;
    z-index: 10;
}

.langSelect li {
    margin-bottom: 5px;
}

.langSelect li:last-child {
    margin-bottom: 0px;
}
