/* Positioning and basic styling for the login widget */
.login-widget {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    width: 16.7rem;
    padding: 0;
    margin-top: 5rem;
    font-family: "Raleway", Calibri, sans-serif;
    color: #FFF;
    height: 100%;
    z-index: -1;
}

.welcome-message {
    font-size: .89rem;
    text-align: right;
    font-family: Calibri, sans-serif;
    color: #575757;
    padding-top: 0.7rem;
    line-height: 1.28rem;
    transform: translateX(2%);
    position: absolute;
    right: 3%;
    z-index: 3;
}

.login-container {
    min-height: 19.4rem;
    max-width: 16.7rem;
    position: absolute;
    margin: 1.4rem auto;
    background: var(--background-gradient);
    border-radius: 2px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hi 0.5s;
    -webkit-transform: translateZ(0px);
    visibility: hidden;
    opacity: 0;
    transition: visibility .5s ease-in-out, opacity .5s ease-in-out;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/zebrafish-pattern.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.login-container.active {
    visibility: visible;
    opacity: 1;
}

body:has(.login-container.active) .login-widget {
    z-index: 2;
}

.login-container * {
    box-sizing: border-box;
}

.pages {
    flex: 1;
    white-space: nowrap;
    position: relative;
    transition: transform 0.4s;
    display: flex;
    z-index: 2;
}

.pages .page {
    min-width: 100%;
    padding: 0 1.1rem 1.1rem;
    background: transparent;
}

.pages .page.signup {
    background: transparent;
}

span.material-icons {
    width: 2.2rem;
    font-size: 1.94rem;
    align-self: flex-start;
}

.pages .page:nth-of-type(1) .input {
    transform: translateX(-100%) scale(0.5);
}

.pages .page:nth-of-type(2) .input {
    transform: translateX(100%) scale(0.5);
}

.pages .page .input {
    transition: transform 1s;
    opacity: 0;
    transition-delay: 0s;
}

.pages .page #reset-block {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    margin-top: 1.1rem;
}

.pages .page a,
.pages .page p {
    font-family: "Raleway", Calibri, sans-serif;
    color: #FFF;
    text-decoration: none;
    vertical-align: center;
    transition: transform .2s ease-in-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.pages .page p {
    font-size: .78rem;
    transition: color 0.3s ease-in-out;
}

.pages .page a, .pages .page p {
    transition: color .3s ease-in-out;
}

.pages .page a:hover, .pages .page p:hover {
    color: var(--login-highlight);
}

.pages .page .title {
    margin-bottom: .55rem;
    font-size: .77rem;
    position: relative;
    line-height: .77rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.pages .page .title span {
    vertical-align: text-bottom;
    font-size: 1.05rem;
}

.pages .page .input {
    margin-top: 0.9rem;
}

#terms-input {
    display: flex;
    align-items: center;
}

.pages .page input {
    background: #F6F7F9;
    border: none;
    border-radius: 4px;
    width: 100%;
    height: 2.2rem;
    line-height: 2.2rem;
    padding: 0 .55rem;
    color: rgba(0, 0, 0, 0.5);
    outline: none;
}

.pages .signup input {
    height: 1.67rem;
    line-height: 1.67rem;
    padding: 0 .33rem;
}

.pages .page input[type=submit] {
    background: rgba(0, 0, 0, 0.5);
    color: #F6F7F9;
    height: 2.22rem;
    line-height: 2.22rem;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
}

.pages .page input[type=submit]:hover {
    color: #fdc3cb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tabs {
    max-height: 2.78rem;
    height: 2.78rem;
    display: flex;
    background: #FFF;
    z-index: 2;
}

.tabs .tab {
    flex: 1;
    color: #5D708A;
    text-align: center;
    line-height: 2.78rem;
    transition: transform 0.2s;
}

.tabs .tab .text {
    font-size: .78rem;
    transform: scale(1);
    transition: transform 0.2s;
}

.tabs .tab:hover {
    cursor: pointer;
}

.checkbox-wrapper-19 {
    box-sizing: border-box;
    --checkbox-height: 20px;
    display: flex;
}

@-moz-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@-webkit-keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothabottomcheck-19 {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-webkit-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-moz-keyframes dothatopcheck-19 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

.checkbox-wrapper-19 input[type=checkbox] {
    display: none;
}

.checkbox-wrapper-19 .check-box {
    height: var(--checkbox-height);
    width: var(--checkbox-height);
    background-color: transparent;
    border: calc(var(--checkbox-height) * .1) solid #000;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.checkbox-wrapper-19 .check-box::before,
.checkbox-wrapper-19 .check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: calc(var(--checkbox-height) * .2);
    background-color: var(--checkbox-first-color);
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: " ";
    -webkit-transition: opacity ease 0.5s;
    -moz-transition: opacity ease 0.5s;
    transition: opacity ease 0.5s;
}

.checkbox-wrapper-19 .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-height) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--checkbox-second-color);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.checkbox-wrapper-19 .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-height) * .05);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box,
.checkbox-wrapper-19 .check-box.checked {
    border-color: var(--checkbox-third-color);
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::after,
.checkbox-wrapper-19 .check-box.checked::after {
    height: calc(var(--checkbox-height) / 2);
    -moz-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck-19 0.2s ease 0s forwards;
    animation: dothabottomcheck-19 0.2s ease 0s forwards;
}

.checkbox-wrapper-19 input[type=checkbox]:checked + .check-box::before,
.checkbox-wrapper-19 .check-box.checked::before {
    height: calc(var(--checkbox-height) * 1.2);
    -moz-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -o-animation: dothatopcheck-19 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck-19 0.4s ease 0s forwards;
    animation: dothatopcheck-19 0.4s ease 0s forwards;
}

.terms-text {
    font-size: 14px;
    margin-left: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type=radio] {
    display: none;
}

input[type=radio]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) {
    box-shadow: inset -3px 2px 5px rgba(0, 0, 0, 0.25);
    color: var(--selected-tab);
}

input[type=radio]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) .text {
    transform: scale(0.9);
}

input[type=radio]:nth-of-type(1):checked ~ .pages {
    transform: translateX(0%);
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input {
    opacity: 1;
    transform: translateX(0%);
    transition: transform 0.5s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(1) {
    transition-delay: 0.2s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(2) {
    transition-delay: 0.4s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(3) {
    transition-delay: 0.6s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(4) {
    transition-delay: 0.8s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(5) {
    transition-delay: 1s;
}

input[type=radio]:nth-of-type(1):checked ~ .pages .page:nth-of-type(1) .input:nth-child(6) {
    transition-delay: 1.2s;
}

input[type=radio]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) {
    box-shadow: inset 3px 2px 5px rgba(0, 0, 0, 0.25);
    color: var(--selected-tab);
}

input[type=radio]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) .text {
    transform: scale(0.9);
}

input[type=radio]:nth-of-type(2):checked ~ .pages {
    transform: translateX(-100%);
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input {
    opacity: 1;
    transform: translateX(0%);
    transition: transform 0.5s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(1) {
    transition-delay: 0.2s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(2) {
    transition-delay: 0.4s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(3) {
    transition-delay: 0.6s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(4) {
    transition-delay: 0.8s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(5) {
    transition-delay: 1s;
}

input[type=radio]:nth-of-type(2):checked ~ .pages .page:nth-of-type(2) .input:nth-child(6) {
    transition-delay: 1.2s;
}

@keyframes hi {
    from {
        transform: translateY(50%) scale(0, 0);
        opacity: 0;
    }
}

.pages .page .flash-block {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    margin-top: .55rem;
    margin-bottom: .55rem;
    height: 2.2rem;
    text-align: right;
}