@font-face {
    font-family: 'altriviera';
    src: url('./fonts/ALTRiviera-Regular.ttf') format('truetype'), url('./fonts/ALTRiviera-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'altriviera';
    src: url('./fonts/ALTRiviera-Light.ttf') format('truetype'), url('./fonts/ALTRiviera-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'altriviera';
    src: url('./fonts/ALTRiviera-Extralight.ttf') format('truetype'), url('./fonts/ALTRiviera-Extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'altriviera';
    src: url('./fonts/ALTRiviera-Bold.ttf') format('truetype'), url('./fonts/ALTRiviera-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'altriviera';
}

.header-bar {
    text-align: center;
    margin-bottom: 30px;
}

.header-bar img {
    max-width: 100%;
    width: 240px;
}

html,
body {
    min-height: 100%;
    position: relative;
    margin: 0;
}

.center-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    max-height: 100%;
}

.container.box {
    max-width: 520px;
    box-shadow: 8px 13px 33px 6px rgba(0, 0, 0, 0.1);
    padding: 50px 60px;
    background: #fff;
    margin: 50px auto;
    position: relative;
    z-index: 0;
    overflow: hidden;
    min-height: 730px;

    background-image: url('../img/wave.png');
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
}

.container.box.isApp {
    min-height: auto;
    background: #fff;
}

.container.box .bg-svg {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70%;
    /* bottom: 0; */
    background: #fff;
    z-index: -1;
}

.container.box:before {
    /* content: ''; */
    background: #f5f5f5;
    position: absolute;
    right: 0;
    left: 0;
    top: calc(70% + 20px);
    bottom: 0;
    z-index: -1;
}

.bg-svg {
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    background: #fff;
    z-index: -1;
}

a {
    color: #dd292c;
}

.underline {
    text-decoration: underline;
}

h4 {
    font-weight: bold;
    font-size: 22px;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.black {
    color: #000;
}

.blackish {
    color: #333;
}

.gray {
    color: #666;
}

.gray:hover, .gray:focus {
    color: #666;
}

.bold {
    font-weight: bold;
}

.w-100 {
    width: 100%;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.input-container {
    position: relative;
    margin-top: 10px;
}
.input-container.error input, .input-container.error input:focus {
    border-color: #dd292c;
}

.input-container.has-icon input[type='text'],
.input-container.has-icon input[type='email'],
.input-container.has-icon input.password {
    padding-left: 50px;
}

.input-container .error-msg {
    display: none;
    position: absolute;
    right: 0;
    top: -30px;
    color: #dd292c;
    font-size: 12px;
}

.input-container.error .error-msg {
    display: flex;
    align-items: center;
}

.input-container .error-msg img {
    height: 20px;
    margin-right: 5px;
}



input[type='text'],
input[type='email'],
input[type='password'],
input.password {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 0;
    padding: 0;
    outline: 0;
    box-shadow: none;
    padding-left: 12px;
    padding-right: 50px;
    background-image: none !important;
}

input[type='text']:focus,
input[type='email']:focus,
input.password:focus {
    border: 1px solid #000;
    outline: 0;
    box-shadow: none;
}

input[disabled] {
    color: #919191;
    background: #F2F2F2;
    border: 1px solid #DFDFDF;
}

.togglePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    height: 60%;
    display: flex;
    align-items: center;
    width: 25px;
}

.togglePassword img {
    height: 100%;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    height: 60%;
    display: flex;
    align-items: center;
}

::placeholder {
    font-weight: 400;
}

:-ms-input-placeholder {
    font-weight: 400;
}

::-ms-input-placeholder {
    font-weight: 400;
}

.recuerdame-container {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.recuerdame-container input {
    margin-right: 5px;
}

.recuerdame-container .right {
    margin-left: auto;
}

.btn-primary {
    background: #dd292c;
    color: #fff;
    border: none;
    border-radius: 5px;
    outline: 0;
    padding: 9px;
    width: 200px;
    max-width: 100%;
    font-weight: bold;
    transition: 0.2s linear all;
}

.btn-secondary {
    background: #fff;
    color: #686868;
    border: 2px solid #686868;
    border-radius: 5px;
    outline: 0;
    padding: 7px 9px;
    width: 200px;
    max-width: 100%;
    font-weight: bold;
    transition: 0.2s linear all;
}

.btn-secondary:hover,
.btn-secondary:focus {
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    text-decoration: none;
    background: #9b1a1c !important;
}

.btn-primary.gray {
    background: #9b9b9b;
}

.btn-primary.gray:hover,
.btn-primary.gray:focus {
    text-decoration: none;
    background: #686868 !important;
    border-color: #686868 !important;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social a {
    margin: 0 10px;
    width: 50px;
    padding: 0;
}

.social a img {
    width: 100%;
}

.btn-social {
    text-align: left;
}

.alert-danger {
    background: none;
    border: none;
    color: #dd292c;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0;
    min-height: 70px;;
}

.alert-danger .error-icon {
    width: 20px;
    height: 20px;
    display: block;
    margin-right: 5px;
}

.alert-danger .message table {
    margin: auto !important;
}

.alert-danger .message table .messageCell {
    height: 41px;
}

@media screen and (max-width: 768px) {
    .center-container {
        align-items: flex-start;
    }

    .container.box .bg-svg {
        position: absolute;
        left: 0;
        right: 0;
        top: 70%;
        /* bottom: 0; */
        background: #fff;
        z-index: -1;
    }
}

/* BOX WIDTH */
@media screen and (max-width: 520px) {
    body {
        /* background: #F5F5F5; */
    }

    .container.box {
        box-shadow: none;
        padding: 40px 20px;
        margin: 0;
    }
}

/* checkbox */
.cb-container {
    display: inline-block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 14px;
}

/* Hide the browser's default checkbox */
.cb-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 15px;
    width: 15px;
    background-color: #fff;
    border: 0.7px solid rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

/* On mouse-over, add a grey background color */
.cb-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.cb-container input:checked ~ .checkmark {
    background-color: #dd292c;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.cb-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.cb-container .checkmark:after {
    left: 2px;
    top: 3px;
    width: 9px;
    height: 5px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotateZ(315deg) rotateY(180deg);
    -ms-transform: rotateZ(315deg) rotateY(180deg);
    transform: rotateZ(315deg) rotateY(180deg);
}

.popup {
    background: #fff;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    padding-top: 50px;
    box-shadow: 8px 13px 33px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    max-height: calc(100vh - 40px);
    pointer-events: all;
    display: none;
}

.popup .close-popup {
    position: absolute;
    top: 0px;
    right: 8px;
    font-size: 48px;
    color: #000;
    background: none;
    border: none;
    outline: 0;
    line-height: 1;
    display: block;
}

.popup .popup-content {
    overflow-y: auto;
    max-height: calc(90vh - 50px);
}

.popup ul {
    padding-left: 20px;
}

.success p {
    margin: 0;
}

.success-img {
    width: 30px;
    margin-right: 20px;
}

.tooltip-wrapper {
    position: relative;
    display: inline;
}


.tooltip-wrapper:hover .tooltip-item {
    display:block !important;
}

.tooltip-wrapper .tooltip-img {
    width: 20px;
    margin: 0 5px;
    cursor: pointer;
}

.tooltip-wrapper .tooltip-item {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -30px);
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1), 2px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    min-width: 250px;

}

.tooltip-wrapper .tooltip-item:before {
    content: '';
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid #fff;
    position:absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
}

/* nif tooltip register */
.tooltip-wrapper .tooltip-item[data-tooltip='nif'] {
    transform: translate(-10%, -30px);
    min-width: 320px;
}

.tooltip-wrapper .tooltip-item[data-tooltip='nif']:before {
    left: 10%;
}

.tooltip-wrapper .tooltip-title {
    background: #666666;
    color: #FFF;
    padding: 7px;
    border-radius: 2px 2px 0 0;
}

.tooltip-wrapper .tooltip-text {
    background: #FFF;
    color: #666666;
    padding: 15px 10px;
    border-radius: 0 0 2px 2px;
}

/* register */
.container.box.register{
    max-width: 900px;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
}

.form-container .wrap{
    width: 45%;
    margin-right: 5%;
}

.form-container .wrap.legend{
    display: flex;
    align-items: flex-end;
}

.form-container .wrap.legend p{
    margin: 0;
}

.captcha table {
    margin: auto;
}

.btn-registro {
    max-width: 320px;
    width: 100%;
    display: block;
    margin: auto;
}

.form-control.is-valid {
    box-shadow: none !important;
    border:  1px solid #000 !important;
}

#divregistry{
    max-width: 100%;
}

#divregistry > span{
    max-width: 100%;
}

.registerLoading{
    max-width: 520px;
    margin: auto;
}

.container.box.register .registerLoading {
    max-width: 900px;
}

.registerLoading .fa-spinner {
    font-size: 50px !important;
    animation: fa-spin 3s infinite linear;
}

.registerLoading .fa-spinner:before {
    content: "\f1ce";
}

@media (max-width: 768px) {
    .form-container .wrap {
        width: 100%;
        margin-right: 0;
    }

    .form-container .wrap.legend{
        display: none;
    }
}
