button {
    cursor: pointer;
}

button [type="button"]:active {
    border: 1px solid #ffffff;
}

.registry-form {
    display: none;
    width: 100%;
    justify-content: center;
    height: 100vh;
    position: fixed;
    top: 0;
    align-items: center;
    background-color: rgba(5, 32, 79, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.formBg {
    background-color: rgba(4, 23, 97, 0.8);
}

.registry-container {
    border-radius: 5px;
}

.registry-inner {
    width: 32em;
}

.registry-alert p {
    font-family: 'Dinnex-R';
    color: #ffffff;
    font-size: 1.1em;
    background: #c01731;
    padding: 0.5em;
    padding-left: 1.5em;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    margin: 0;
}

.registry-alert p img {
    margin-right: 1em;
}

.close-reg {
    position: relative;
    bottom: 2em;
    left: 30em;
    display: inline;
}

.closealert {
    bottom: 7.5em;
    left: 32em;
}

.close-reg img {
    width: 20px;
}

.formulary {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.formulary h1 {
    font-family: 'BebasN';
    color: #ffffff;
    font-size: 2em;
    letter-spacing: 3px;
    margin-bottom: 0.2em;
    margin-top: 0;
}

.formulary p {
    font-family: 'Dinnex-R';
    color: #ffffff;
    margin: 0;
}

.social-reg {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 1em;
}

.social-reg a {
    background: #ffffff;
    width: 8em;
    text-align: center;
    margin: 0.5em;
    border-radius: 5px;
}

.social-reg img {
    padding: 0.5em;
    width: 25px;
}

.form-reg {
    display: flex;
    flex-direction: column;
    margin: 0 3em;
}

.inputs {
    display: flex;
    justify-content: space-between;
}

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

.singleinput {
    display: flex;
}

#id-num {
    margin-right: 0;
    width: 100%;
}

::placeholder {
    color: #ffffff;
    opacity: 0.5;
}

.form-reg input:focus,
.form-reg select:focus,
.reg-idType button:focus {
    outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

#selplaceh {
    position: absolute;
    height: 10px;
    padding-right: 1em;
    padding-bottom: 1em;
}

.form-reg option {
    color: #343434;
    font-size: 0.9em;
}

.reg-idType label {
    font-family: 'Dinnex-R';
    width: 100%;
}

.reg-idType {
    flex-direction: column;
}

.reg-idType div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inputs div label {
    width: auto;
    margin-bottom: 0.5em;
}

.reg-idType button {
    display: flex;
    align-items: center;
    background: rgba(114, 138, 174, 0.5);
    font-family: 'Dinnex-R';
    color: #ffffff;
    opacity: 0.7;
    height: 45px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

.reg-idType button:first-of-type {
    margin-right: 1em;
}

.reg-idType img {
    width: 30px;
    padding-left: 13px;
    padding-right: 0.5em;
}

.reg-idType p:first-of-type {
    margin: 0;
    padding-bottom: 0.4em;
    font-size: 1em;
}

.check-reg {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5em 3em;
    padding-left: 0;
    font-family: 'Dinnex-R';
    color: #ffffff;
    font-size: 0.8em;
}

.check-reg div {
    padding: 0;
    display: flex;
    align-items: center;
}

.check-reg input {
    background: rgba(114, 138, 174, 0.5);
    -webkit-appearance: none;
    padding: 0.7em;
    border-radius: 3px;
    display: inline-block;
    height: auto;
    margin-right: 0.8em;
    cursor: pointer;
}

input[type=checkbox]:focus {
    outline: none;
}

.check-reg a {
    color: #ffffff;
}

.alert-mob {
    display: none;
}

.check-reg input:checked {
    background: url(../imgs/header/chekedbox.png) no-repeat center;
    background-color: #ffffff;
}

.singleid {
    display: flex;
    align-items: center;
    padding-bottom: 0 !important;
    margin: 0;
}

.singleid input {
    width: 200px;
    -webkit-appearance: none;
    background: rgba(114, 138, 174, 0.5);
    border: none;
    height: 45px;
    margin: 0;
    border-radius: 5px;
    cursor: pointer;
}

.singleid input:checked {
    border: 1px solid #ffffff;
}

.singleid img {
    position: absolute;
    margin-left: 0.5em;
}

.singleid p {
    position: absolute;
    margin-left: 3.5em;
    font-size: 0.9em;
    color: #9badc8;
    padding: 0;
}

.idtype input {
    height: 45px;
    width: 200px;
    -webkit-appearance: none;
    background: rgba(114, 138, 174, 0.5);
    margin: 0;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
}

.idtype input:checked {
    border: 1px solid #ffffff;
}

.idspan {
    display: flex;
    align-items: center;
    position: absolute;
    font-family: 'Dinnex-R';
    font-size: 0.9em;
    color: #99a9c6;
}

.reg-idType>.inputs {
    flex-direction: column;
    align-items: stretch;
}

.textfield,
.areatextfield {
    position: relative;
    display: inline-block;
    padding-top: 6px;
    font-family: 'Dinnex-R';
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    width: 100%;
}


/* Input, Textarea */

.textfield input,
.areatextfield textarea {
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #ffffff;
    border-color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
    border-top-color: transparent;
    border-radius: 5px;
    padding: 10px 13px;
    width: 100%;
    height: inherit;
    color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.87);
    background-color: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}


/* Span */

.textfield input+span,
.areatextfield textarea+span {
    position: absolute;
    bottom: 6px;
    left: 0;
    display: flex;
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    width: 100%;
    max-height: 100%;
    color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
    font-size: 75%;
    line-height: 15px;
    cursor: text;
    transition: color 0.2s, font-size 0.2s, line-height 0.2s;
}


/* Corners */

.textfield input+span::before,
.textfield input+span::after,
.areatextfield textarea+span::before,
.areatextfield textarea+span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 10px;
    height: 58px;
    pointer-events: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textfield input+span::before,
.areatextfield textarea+span::before {
    margin-right: 4px;
    border-left: solid 1px transparent;
    border-radius: 4px 0;
}

.textfield input+span::after,
.areatextfield textarea+span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}

.textfield input:not(:focus):placeholder-shown,
.areatextfield textarea:not(:focus):placeholder-shown {
    border-top-color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
}

.textfield input:not(:focus):placeholder-shown+span,
.areatextfield input:not(:focus):placeholder-shown+span {
    font-size: inherit;
    line-height: 68px;
}

.textfield input:not(:focus):placeholder-shown+span::before,
.textfield input:not(:focus):placeholder-shown+span::after,
.areatextfield textarea:not(:focus):placeholder-shown+span::before,
.areatextfield textarea:not(:focus):placeholder-shown+span::after {
    border-top-color: transparent;
}

.textfield input:focus+span,
.areatextfield textarea:focus+span {
    color: rgb(var(--pure-material-primary-rgb, 250, 250, 250));
}


/* INVLID */

.textfield.error input {
    border-color: #db2311;
    border-top-color: transparent;
}

.textfield.error input+span::before,
.textfield.error input+span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 10px;
    height: 58px;
    pointer-events: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textfield.error input+span::before {
    margin-right: 4px;
    border-left: solid 1px transparent;
    border-radius: 4px 0;
}

.textfield.error input+span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}

.textfield.error input:not(:focus):placeholder-shown {
    border-top-color: #db2311;
}

.textfield.error input:not(:focus):placeholder-shown+span {
    font-size: inherit;
    line-height: 68px;
}

.textfield.error input:not(:focus):placeholder-shown+span::before,
.textfield.error input:not(:focus):placeholder-shown+span::after {
    border-top-color: transparent;
}

.textfield.error input+span {
    color: #db2311;
}


/* SELECT */

.select {
    position: relative;
    display: inline-block;
    padding-top: 6px;
    font-family: 'Dinnex-R';
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    width: 100%;
}


/* Input, Textarea */

.select select {
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #ffffff;
    border-color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
    border-radius: 5px;
    padding: 10px 13px;
    width: 100%;
    height: inherit;
    color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.87);
    background-color: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select img {
    position: absolute;
    right: 1em;
    width: 10px;
}


/* Span */

.select select+span {
    position: absolute;
    top: 22px;
    left: 0;
    display: flex;
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    width: fit-content;
    max-height: 100%;
    color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
    font-size: 1em;
    line-height: 15px;
    transition: color 0.2s, font-size 0s, top 0s;
}


/* Corners */

.select select+span::before {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 10px;
    pointer-events: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select select:focus+span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 22.7em;
    pointer-events: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select select+span::before {
    margin-right: 4px;
    border-left: solid 1px transparent;
    border-radius: 4px 0;
}

.select select+span::after {
    flex-grow: 1;
    margin-left: 4px;
    border-right: solid 1px transparent;
    border-radius: 0 4px;
}

.select select:not(:focus):valid {
    border-top-color: transparent;
}

.select select:not(:focus):valid+span::before {
    border-top: solid 1px;
}

.select select:not(:focus):valid+span::after {
    content: "";
    display: block;
    box-sizing: border-box;
    margin-top: 6px;
    border-top: solid 1px;
    min-width: 22.7em;
    pointer-events: none;
}

.select select:not(:focus):valid+span {
    top: 0;
    font-size: 0.8em;
}

.select select:focus {
    border-top-color: transparent;
}

.select select:focus+span {
    font-size: inherit;
    top: 0;
    font-size: 0.8em;
}

.select select:not(:focus)+span::before,
.select select:not(:focus)+span::after {
    border-top-color: transparent;
}

.wrap {
    width: 100%;
    margin: 0 auto;
}

.select {
    display: flex;
    align-items: center;
}

.textfield p,
#errorgender,
#erroridtype {
    color: #db2311;
    font-family: 'Dinnex-R';
    font-size: 0.8em;
}

.textfield.error input {
    border-bottom-color: #db2311;
    border-left-color: #db2311;
    border-right-color: #db2311;
}

.select.error select+span,
.select.error select:focus~.select-label,
.select.error select:valid~.select-label,
.textfield.error input+span::before,
.textfield.error input+span::after {
    color: #db2311;
}

.select.error select {
    border: 1px solid #db2311;
}

.select.error select:focus {
    border-top-color: transparent;
}

.check-idtype input {
    border-color: #db2311;
}

.checkterms.error input {
    border: 1px solid #db2311;
}

.formulary button {
    margin: 1em 0;
    height: 45px;
    border: none;
    border-radius: 5px;
    font-family: 'BebasN';
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 4px;
    color: #292663;
}

@media screen and (max-width: 1440px) {
    .registry-alert p {
        font-size: 1em;
    }
    .closealert {
        bottom: 4em;
        left: 32.5em;
    }
    .close-reg img {
        width: 20px;
    }
    .formulary {
        margin-top: -2.5em;
    }
    .formulary h1 {
        margin-top: 1em;
        font-size: 1.8em;
    }
    .social-reg {
        margin: 0.5em;
        margin-bottom: 0;
    }
    .social-reg a {
        margin: 0 0.5em;
    }
    .social-reg img {
        width: 20px;
    }
    .form-reg {
        padding: 1em 0;
        padding-bottom: 0.5em;
    }
    .reg-idType button {
        height: 35px;
    }
    .reg-idType img {
        width: 25px;
    }
    .reg-idType p {
        font-size: 1em;
        padding: 0.5em 0;
    }
    .check-reg input {
        height: auto;
    }
    .formulary button {
        height: 35px;
        font-size: 1.3em;
        margin: 0.5em 0;
    }
}

@media screen and (max-width: 1366px) {
    .social-reg img {
        padding: 0.3em;
    }
    .form-reg {
        padding-bottom: 0;
    }
    .check-reg {
        padding-top: 0;
    }
    .close-reg {
        bottom: 1.8em;
    }
    .registry-container {
        margin-top: 0;
    }
    .registry-alert p {
        display: flex;
        font-size: 0.8em;
        padding: 0.5em;
        padding-left: 2em;
    }
    .registry-alert p img {
        margin-right: 1em;
        width: 25px;
    }
    .inputs div label {
        margin-bottom: 0;
        width: 17em;
    }
    .textfield,
    .select {
        font-size: 12px;
    }
    .textfield input+span {
        bottom: 10px;
    }
    .textfield input+span::before,
    .textfield input+span::after {
        height: 45px;
    }
    .textfield.error input+span::before,
    .textfield.error input+span::after {
        height: 45px;
    }
    .textfield p {
        font-size: 0.9em;
    }
    #errorgender {
        font-size: 0.8em;
    }
    #erroridtype {
        font-size: 0.8em;
        padding: 0;
        padding-bottom: 0.3em;
    }
    .select select:focus+span {
        top: 0;
        font-size: 0.8em;
    }
    .select select:focus+span::after {
        min-width: 33.05em;
    }
    .select select:not(:focus):valid+span::after {
        min-width: 33.05em;
    }
    .reg-idType p:first-of-type {
        padding-bottom: 0.2em;
        font-size: 0.9em;
    }
    .check-reg {
        font-size: 0.7em;
    }
}

@media screen and (max-width: 900px) {
    .registry-form {
        position: unset;
        height: auto;
        flex-direction: column;
        display: none;
        background-color: unset;
        backdrop-filter: none;
    }
    .alert-mob {
        display: flex;
        margin-top: 1em;
        width: 100%;
    }
    .alert-mob p {
        font-family: 'Dinnex-R';
        color: #ffffff;
        font-size: 1em;
        background: #c01731;
        padding-left: 2em;
        border-radius: 5px;
        display: none;
        align-items: center;
        margin: 0;
        width: 64%;
        z-index: 1;
    }
    .alert-mob p img {
        margin-right: 2em;
    }
    .back-reg {
        margin-right: 6em;
    }
    .formBg {
        margin-top: -1.5em;
        margin-bottom: 11em;
    }
    .registry-container {
        margin: 0;
        border: none;
        background: none;
    }
    .registry-inner {
        margin: 0;
        width: 42em;
    }
    .registry-alert {
        display: none;
    }
    .formulary {
        margin: 0;
        filter: none;
        padding: 0 2em;
        border-radius: 0;
    }
    .social-reg {
        margin: 1em;
        margin-bottom: 0.5em;
    }
    .social-reg a {
        width: 10em;
    }
    .social-reg img {
        width: 25px;
    }
    .form-reg {
        width: 90%;
    }
    .reg-idType button {
        height: 45px;
    }
    .formulary h1 {
        font-size: 2.5em;
    }
    .formulary p {
        font-size: 1em;
    }
    .inputs {
        padding: 0;
        flex-direction: column;
    }
    .form-reg input {
        margin-bottom: 1em;
    }
    .reg-idType {
        padding-bottom: 0;
    }
    .reg-idType div {
        margin: 0;
        padding-bottom: 0;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    .reg-idType label {
        width: auto;
    }
    .reg-idType button {
        margin: 0;
        margin-bottom: 1.5em;
    }
    .reg-idType button:first-of-type {
        margin: 0;
        margin-bottom: 1em;
    }
    .reg-idType img {
        width: 25px;
    }
    #id-num {
        margin-bottom: 0;
    }
    .check-reg {
        padding: 0.5em 0em;
        padding-top: 1em;
        flex-direction: column;
    }
    .checkterms {
        flex-direction: row;
        margin: 0;
        justify-content: flex-start;
        margin-bottom: 0.7em;
    }
    .checkterms input {
        margin-bottom: 0;
        margin-right: 1em;
        padding: 1em;
        height: auto;
    }
    .formulary button {
        margin: 0;
        height: 45px;
        font-size: 1.5em;
        margin-bottom: 1em;
    }
    .textfield {
        width: 100%;
    }
    .textfield input {
        margin-bottom: 0;
    }
    .selectinp {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .idspan {
        padding-bottom: 0.5em;
    }
    .idtype:last-of-type .idspan {
        padding-bottom: 0;
    }
    .inputs div label {
        width: 100%;
        padding-bottom: 0;
    }
    .textfield>input+span {
        position: absolute;
        bottom: 10px;
        left: 0;
        display: flex;
        border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
        width: 100%;
        max-height: 100%;
        color: rgba(var(--pure-material-onsurface-rgb, 250, 250, 250), 0.6);
        font-size: 75%;
        line-height: 15px;
        cursor: text;
        transition: color 0.2s, font-size 0.2s, line-height 0.2s;
    }
    .textfield {
        position: relative;
        display: inline-block;
        padding-top: 6px;
        font-family: 'Dinnex-R';
        font-size: 16px;
        line-height: 1.5;
        overflow: hidden;
    }
    .textfield>input+span::before {
        margin-right: 4px;
        border-left: solid 1px transparent;
        border-radius: 4px 0;
    }
    .textfield>input+span::before,
    .textfield>input+span::after {
        content: "";
        display: block;
        box-sizing: border-box;
        margin-top: 6px;
        border-top: solid 1px;
        min-width: 10px;
        height: 39px;
        pointer-events: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .textfield>input+span::after {
        flex-grow: 1;
        margin-left: 4px;
        border-right: solid 1px transparent;
        border-radius: 0 4px;
    }
    .textfield>input:not(focus)+span::before,
    .textfield>input:not(focus)+span::after {
        height: 56px;
    }
    .select select:focus+span::after,
    .select select:not(:focus):valid+span::after {
        min-width: 32.94em;
    }
    .textfield.error input+span {
        bottom: 8px;
    }
    .textfield.error input+span::before,
    .textfield.error input+span::after {
        height: 58px;
    }
    .textfield p,
    #errorgender,
    #erroridtype {
        font-size: 0.9em;
    }
    .select {
        font-size: 16px;
    }
    .idtype input,
    #numberid {
        width: 100%;
    }
    #CE {
        margin-bottom: 0;
    }
    @media screen and (max-height: 1024px) {
        .registry-inner {
            margin-bottom: 2em;
        }
    }
}

@media screen and (max-width: 660px) {
    .registry-inner {
        width: 31em;
    }
    .checkterms input {
        padding: 0.8em;
    }
    .formulary p {
        font-size: 1em;
    }
    .social-reg img {
        width: 20px;
    }
    .select select:focus+span::after,
    .select select:not(:focus):valid+span::after {
        min-width: 20.57em;
    }
    .textfield>input+span {
        bottom: 13px;
    }
    .textfield.error input+span {
        bottom: 11px;
    }
    .registry-inner {
        margin-bottom: 0;
    }
    .back-reg {
        margin-right: 3em;
    }
}

@media screen and (max-width: 420px) {
    .back-reg {
        padding: 0.5em;
        margin-right: 2em;
    }
    .alert-mob p {
        width: 67%;
        font-size: 0.8em;
    }
    .alert-mob p img {
        margin-right: 1em;
        width: 22px;
    }
    .formBg {
        margin-bottom: 7em;
    }
    .registry-inner {
        width: 21em;
    }
    .registry-inner {
        width: 24em;
    }
    .formulary {
        padding: 0;
    }
    .social-reg a {
        width: 8em;
    }
    .form-reg select {
        font-size: 1em;
    }
    #selplaceh {
        padding-left: 20em;
    }
    .select select:focus+span::after,
    .select select:not(:focus):valid+span::after {
        min-width: 17.15em;
    }
}

@media screen and (max-width: 375px) {
    .registry-inner {
        width: 22em;
    }
    #selplaceh {
        padding-left: 18em;
    }
    .select select:focus+span::after,
    .select select:not(:focus):valid+span::after {
        min-width: 14.94em;
    }
    .alert-mob p {
        font-size: 0.7em;
        padding-left: 1em;
    }
}

@media screen and (max-width: 320px) {
    .registry-inner {
        width: 19em;
    }
    .social-reg a {
        width: 7em;
    }
    .social-reg img {
        width: 20px;
    }
    .reg-idType button {
        height: 40px;
    }
    .reg-idType label {
        font-size: 1em;
    }
    .formulary p {
        font-size: 0.8em;
    }
    #selplaceh {
        padding-left: 15.5em;
    }
    .check-reg {
        font-size: 0.6em;
    }
    .select select:focus+span::after,
    .select select:not(:focus):valid+span::after {
        min-width: 11.55em;
    }
    .textfield>input+span {
        bottom: 8px;
    }
    .textfield.error input+span {
        bottom: 6px;
    }
}

@media not all and (min-resolution: .001dpcm) {
    @supports (-webkit-appearance: none) {
        .textfield> input, .textfield > input + span, .textfield> input + span::before, .textfield> input + span::after {
            transition-duration: 0.1s;
        }
    }
}