/* **** GENERAL SETTINGS **** */

@font-face {
    font-family: "SFUIText";
    src: url("../fonts/login-register/SFUIText-Regular.woff");
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
}

@font-face {
    font-family: "SFUIText-Bold";
    src: url("../fonts/login-register/SFUIText-Bold.woff");
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
}

@font-face {
    font-family: "DMSans";
    src: url("../fonts/login-register/DMSans-Regular.ttf");
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
}

@font-face {
    font-family: "DMSans-Bold";
    src: url("../fonts/login-register/DMSans-Bold.ttf");
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
}

@font-face {
    font-family: "SFCompact";
    src: url("../fonts/login-register/SFCompactDisplay-Regular.ttf");
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ff-title: "SFUIText";
    --ff-title2: "SFUIText-Bold";
    --ff-subtitle: "DMSans";
    --ff-link: "DMSans-Bold";
    --ff-other: "SFCompact";

    --clr-bg: #000000;
    --clr-bg2: #461111;
    --clr-bg3: #ffffff;
    --clr-text: #ffffff;
    --clr-text2: #727272;
    --clr-text3: #042c5c;
    --clr-accent: #4adede;
    --clr-field: #e4e4e4;
    --clr-border: #707070;
    --clr-label: #a3a2a2;
    --clr-border2: #cecccc;

    --bg-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    --bg-shadow2: 0 0 5px 0 rgba(85, 84, 84, 0.3);

    --fs-title: 1.375rem;
    /* 22 px */
    --fs-title2: 2.375rem;
    /* 38 px */
    --fs-subtitle: 1.125rem;
    /* 18 px */
    --fs-label: 1rem;
    /* 16 px */
    --fs-desc: 0.875rem;
    /* 14 px */

    font-size: 16px;
}

::-webkit-scrollbar {
    display: none;
}

body {
    /* overflow: hidden; */
    /* overflow-x: hidden; */
    padding: 0;
    margin: 0;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
}

a:hover {
    color: var(--clr-accent);
}

.hero {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: url("../img/login-register/fondo.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.logo-container {
    width: 100%;
    height: 100%;
    display: flex;

    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.logo-txt {
    width: 21.875rem;
    height: 12.5rem;

    padding: 10px;
}

.logo-txt>p {
    color: var(--clr-text);

    font-family: var(--ff-title);
    font-size: var(--fs-title);
    line-height: 1.18;
    margin-top: 31.5px;
}

.wrapper {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.box-container {
    width: 100%;
    max-width: 37.3125rem;
    height: 100%;
    max-height: 70rem;

    border-radius: 26px;
    box-shadow: var(--bg-shadow);
    background-color: var(--clr-bg3);
    padding: 4.0625rem 4.5625rem 4.0625rem 4.5625rem;
    color: var(--clr-text2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-border-radius: 26px;
    -moz-border-radius: 26px;
    -ms-border-radius: 26px;
    -o-border-radius: 26px;
}

/*  **** LOGIN ****  */

.box-txt {
    text-align: left;
}

.box-title {
    font-family: var(--ff-title2);
    font-size: var(--fs-title2);
    line-height: 1.05;
    letter-spacing: 0.0462rem;
    margin: 0;
}

.box-sub {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-subtitle);
    margin-top: 1.3562rem;
}

.link-options {
    font-family: var(--ff-link);
}

.txt-field {
    width: 100%;
    height: 5rem;
    margin: 1.25rem 0 0.3125rem 0;
    padding: 0;
}

.txt-label {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-label);
    color: var(--clr-label);
}


.txt-input {
    font-family: var(--ff-other);
    font-size: var(--fs-subtitle);
    color: red;
}

.txt-input:not(.is-invalid) {
    color: var(--clr-text3);
}


input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 50%;
    border: none;
    outline: none;
    margin: 0;
    background: linear-gradient(90deg, red, red) center bottom/0 2px no-repeat,
        linear-gradient(90deg, var(--clr-field), var(--clr-field)) left bottom/100% 2px no-repeat;
    transition: background-size 0.3s ease;

    -webkit-transition: background-size 0.3s ease;
    -moz-transition: background-size 0.3s ease;
    -ms-transition: background-size 0.3s ease;
    -o-transition: background-size 0.3s ease;
}

input[type="text"]:not(.is-invalid),
input[type="email"]:not(.is-invalid),
input[type="password"]:not(.is-invalid) {
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent)) center bottom/0 2px no-repeat,
        linear-gradient(90deg, var(--clr-field), var(--clr-field)) left bottom/100% 2px no-repeat;
    transition: background-size 0.3s ease;

    -webkit-transition: background-size 0.3s ease;
    -moz-transition: background-size 0.3s ease;
    -ms-transition: background-size 0.3s ease;
    -o-transition: background-size 0.3s ease;
}


input[type="text"].focusOn,
input[type="text"]:focus,
input[type="email"].focusOn,
input[type="email"]:focus,
input[type="password"].focusOn,
input[type="password"]:focus {
    background-size: 100% 2px, 100% 2px;
}

input:-webkit-autofill {
    border-bottom: solid 2px red !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
    -webkit-text-fill-color: red !important;
}

input:-webkit-autofill:not(.is-invalid) {
    border-bottom: solid 2px var(--clr-accent) !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
    -webkit-text-fill-color: var(--clr-text3) !important;
}



.container-btn-c {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 5% 0 5% 0;
}

.continue-btn {
    width: 6.125rem;
    height: 2.3125rem;
    border: none;
    border-radius: 19px;
    background-color: var(--clr-accent);
    font-family: var(--ff-title2);
    font-size: var(--fs-desc);
    color: var(--clr-text);

    transition-duration: 0.3s ease;
    transition-property: box-shadow, transform;

    cursor: pointer;
}

.continue-btn:hover,
.continue-btn:focus,
.continue-btn:active {
    box-shadow: var(--bg-shadow2);
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    -o-transform: scale(1.01);
}

.middle-container {
    width: 100%;
    display: inline-flex;
    margin: 10% 0 5% 0;
}

.or-continue {
    width: 100%;
    font-family: var(--ff-subtitle);
    font-size: var(--fs-subtitle);
    text-align: center;
}

.empty {
    width: 100%;
    background: linear-gradient(90deg, var(--clr-field), var(--clr-field)) center top/100% 2px no-repeat;
    position: relative;
    top: 10px;
}

.social-btn {
    width: 28.25rem;
    height: 4.25rem;
    border: none;
    border-radius: 34px;
    box-shadow: var(--bg-shadow);
    background-color: var(--clr-bg3);
    margin-bottom: 15px;
    padding: auto;
    display: inline-flex;
    align-items: center;
    column-gap: 2.8125rem;
    cursor: pointer;
    transition-duration: 0.3s;
    transition-property: box-shadow, transform;
    -webkit-border-radius: 34px;
    -moz-border-radius: 34px;
    -ms-border-radius: 34px;
    -o-border-radius: 34px;
}

.social-btn:hover,
.social-btn:focus,
.social-btn:active {
    box-shadow: var(--bg-shadow2);
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    -o-transform: scale(1.01);
}

.btn-txt {
    font-family: var(--ff-title2);
    font-size: var(--fs-label);
    color: var(--clr-text3);
}

.icon-gg {
    width: 1.875rem;
    height: 1.875rem;
    position: relative;
    right: -2.1875rem;
}

.icon-fb {
    width: 1rem;
    height: 2rem;
    position: relative;
    right: -2.1875rem;
}

.txt-gg {
    position: relative;
    left: 4.5625rem;
    margin-top: auto;
    margin-bottom: auto;
}

.txt-fb {
    position: relative;
    left: 5.5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.box-comment {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-desc);
    margin-top: 5%;
}

/*  **** PASSWORD ****  */

.user-id {
    width: 100%;
    margin-top: 10%;
}

.img-circle {
    width: 65px;
    height: 65px;
    background: var(--clr-field);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border: solid 1px var(--clr-border);
}

.profile-photo {
    display: inline-flex;
}

.user-data {
    margin-left: 15px;
}

.show-data {
    font-family: var(--ff-title);
    font-size: var(--fs-subtitle);
    color: var(--clr-text3);
}

.two-field {
    position: relative;
}

.user-pass {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pwd-input {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-subtitle);
    padding-bottom: 15px;
}

.under-pass {
    width: 100%;
    margin-top: 5%;
    display: inline-flex;
}

.under-pass>.container-btn-c {
    margin-top: 0.625rem;
}

.remember {
    width: 100%;
    padding-top: 5px;
}

.remember-label {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-subtitle);
    color: var(--clr-label);
    margin: 10px;
}

input[type="checkbox"] {
    width: 2.0625rem;
    height: 2.0625rem;
    background-color: var(--clr-bg3);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    vertical-align: middle;
    border: 0.1rem solid var(--clr-label);
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    border: 0.25rem solid var(--clr-accent);
    background: radial-gradient(var(--clr-accent) 35%, rgba(255, 0, 0, 0) 40%);
}

.visibility-container {
    position: absolute;
    left: 400px;
    top: 30px;
    display: block;
}

.check-container {
    cursor: pointer;
}

.visibility {
    display: none;
}

.visibility+.icon-eye::before {
    content: url("../img/login-register/invisible.svg");
    width: 33.8px;
    height: 28.1px;
}

.visibility:checked+.icon-eye::before {
    content: url("../img/login-register/visible.svg");
    width: 33.8px;
    height: 24px;
}

.bottom-container {
    width: 100%;
    height: 150px;
    font-size: var(--fs-subtitle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    column-gap: 6px;
}

.empty-two {
    width: 100%;
    height: 30%;

    background: linear-gradient(90deg, var(--clr-field), var(--clr-field)) center bottom/100% 2px no-repeat;
}

.link-container {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.link-pwd {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-subtitle);
}

/*  **** CREATE ACCOUNT ****  */

.register-forms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.box-account {
    height: 100%;
    max-height: 70rem;
    padding: 2.5rem 79px 2.5rem 3.8125rem;
    position: relative;
}

.visibility-pwd-account {
    left: 400px;
    top: 30px;
}

.under-pass-account {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5%;
}

.under-pass-account>p {
    width: 100%;
    font-family: var(--ff-title);
    font-size: var(--fs-subtitle);
    margin: 0 0 5px 0;
}

.under-pass-account>.remember {
    width: 50%;
}

.account-kind-user {
    margin-left: 10px;
}

input[type="radio"] {
    width: 2.0625rem;
    height: 2.0625rem;
    background-color: var(--clr-bg3);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    vertical-align: middle;
    border: 0.1rem solid var(--clr-label);
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

input[type="radio"]:checked {
    border: 0.25rem solid var(--clr-accent);
    background: radial-gradient(var(--clr-accent) 35%, rgba(255, 0, 0, 0) 40%);
}

.terms-container {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-desc);
    justify-content: space-evenly;
    margin-bottom: 10px;
    line-height: 1.125rem;
}

.terms-container>.remember {
    margin-bottom: 10px;
    position: relative;
}

.be-contacted-label {
    font-family: var(--ff-subtitle);
    font-size: var(--fs-desc);
    margin-left: 15px;
    margin-bottom: 0;
}

.privacy {
    position: absolute;
    top: 5px;
}

.account-btn-container {
    height: 100%;
    width: 100%;
    margin-top: 1.25rem;
}

.btn-account {
    width: 28.25rem;

    height: 4.25rem;
    border: none;
    border-radius: 34px;
    box-shadow: var(--bg-shadow);
    background-color: var(--clr-accent);

    padding: auto;
    cursor: pointer;

    transition-duration: 0.3s;
    transition-property: box-shadow, transform;
}

.btn-account:hover,
.btn-account:focus,
.btn-account:active {
    box-shadow: var(--bg-shadow2);
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    -o-transform: scale(1.01);
}

.txt-account {
    font-family: var(--ff-title2);
    font-size: var(--fs-title);
    color: var(--clr-text);
    margin: auto;
}

/*  **** CAPTCHA ****  */

.captcha-container {
    display: inline-flex;
    column-gap: 50px;
    margin-top: auto;
    margin-bottom: auto;
}

.btn-captcha {
    background-color: var(--clr-accent);
    border: none;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    box-shadow: var(--bg-shadow);

    cursor: pointer;

    margin-bottom: auto;
    margin-top: auto;

    transition-duration: 0.3s;
    transition-property: box-shadow, transform;
}

.btn-captcha:disabled {
    background-color: var(--clr-text);
    border: 5px solid var(--clr-border2);
    opacity: 40%;
    cursor: not-allowed;
}

.arrow {
    margin: auto;
    padding: auto;
    width: 30px;
    height: 6px;
    background-color: var(--clr-bg3);
    position: relative;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.arrow::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 5px;
    background-color: var(--clr-bg3);
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    position: absolute;
    right: -4px;
    bottom: 5px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.arrow::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 5px;
    background-color: var(--clr-bg3);
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    position: absolute;
    right: -4px;
    top: 5px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.btn-captcha:disabled>.arrow,
.btn-captcha:disabled>.arrow::after,
.btn-captcha:disabled>.arrow::before {
    background-color: var(--clr-border2);
}

.btn-captcha:hover,
.btn-captcha:focus,
.btn-captcha:active {
    box-shadow: var(--bg-shadow2);
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    -o-transform: scale(1.01);
}

.box-hidden {
    display: none;
}

/*! ====== MEDIA QUERY ======*/

@media (max-width: 900px) {
    ::-webkit-scrollbar {
        display: block;
    }

    .hero {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo-container {
        height: 11%;
        display: inline-block;
    }

    .logo-txt {
        height: 100%;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
    }

    .logo {
        height: 50px;
    }

    .logo-txt>p {
        display: none;
    }

    .wrapper {
        justify-content: center;
    }

    .box {
        width: 97%;
        height: fit-content;
        margin: 0 2% 0 2%;
        padding: 10%;
        justify-content: center;
    }

    .social-btn-container {
        width: 100%;
        display: flex;

        flex-wrap: wrap;
        flex-direction: row;
        display: -webkit-flex;
        justify-content: space-between;
    }

    .social-btn {
        width: 100%;
        height: 4.25rem;

        border-radius: 2.125rem;
        -webkit-border-radius: 2.125rem;
        -moz-border-radius: 2.125rem;
        -ms-border-radius: 2.125rem;
        -o-border-radius: 2.125rem;
    }

    .txt-gg {
        width: fit-content;
        position: relative;
        left: 1.0625rem;
    }

    .txt-fb {
        width: fit-content;
        position: relative;
        left: 1.0625rem;
    }

    .two-field {
        position: relative;
    }

    .visibility-container {
        position: absolute;
        bottom: 5px;
        left: 290px;

        display: block;
    }

    .under-pass {
        display: flex;
    }

    .under-pass>.remember {
        width: 100%;
    }

    .btn-account {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    :root {
        font-size: 13px;
    }

    .hero {
        height: 100%;
        display: grid;
        grid-template-rows: 80px auto;
        align-items: start;
    }

    .wrapper {
        align-items: flex-start;
    }

    .logo-container {
        position: relative;
        padding: 9px;
    }

    .logo-txt {
        padding: 0;
    }

    .logo {
        position: absolute;
        left: 16px;
    }

    .box-container {
        padding: 10%;
        border-radius: inherit;
        -webkit-border-radius: inherit;
        -moz-border-radius: inherit;
        -ms-border-radius: inherit;
        -o-border-radius: inherit;
        height: 100%;
        width: 100%;
    }

    .social-btn {
        height: 4.25rem;
        width: 4.25rem;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        justify-content: center;
    }

    .txt-gg,
    .txt-fb {
        display: none;
    }

    .icon-fb {
        position: inherit;
    }

    .icon-gg {
        position: inherit;
    }

    .bottom-container {
        justify-content: inherit;
    }

    .captcha-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .visibility-container {
        left: 260px;
    }

    .box-container.box-captcha-container {
        width: 100vw;
    }
}

/*! ====== END MEDIA QUERY ======*/