body {
    font-family: "Arial", sans-serif;
    color: #1d1d1f;
    font-style: normal;
    font-size: 17px;
}

p {
    margin: 0;
    padding: 0;
}

.main {
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tile-overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 0.8s;
}

.box-main {
    display: flex;
    justify-content: center;
    align-items: center;
    inline-size: 640px;
    block-size: 610px;
    margin-block-start: 44px;
    border-radius: 34px;
    background-color: transparent;
    backdrop-filter: blur(10px);
    perspective: 3200px;
}

.box-login, .box-register {
    position: absolute;
    display: inherit;
    justify-content: inherit;
    align-items: inherit;
    inline-size: inherit;
    block-size: inherit;
    border-radius: inherit;
    background-color: #fff;
    box-shadow: 0 11px 44px 0 rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    transition-property: transform;
    transition-timing-function: ease-in-out;
    transition-duration: 0.8s;
}

.box-login {
    z-index: 2;
    transform: rotateX(0deg);
}

.box-register {
    transform: rotateX(-180deg);
}

#toggle {
    display: none;
}

#toggle-open, #toggle-close {
    cursor: pointer;
    z-index: 1;
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #0070c9;
}

#toggle-close {
    bottom: auto;
    right: auto;
    top: 35px;
    left: 35px;
    position: absolute;
}

#toggle-open:hover {
    text-decoration: underline;
}

#toggle-open:active {
    text-decoration: none;
}

.close-icon {
    font-size: 20px;
    font-weight: bold;
}

.round-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1d1d1f;
    line-height: 40px;
    color: #fff;
    cursor: pointer;
    position: relative;
}

.round-button:hover {
    opacity: 0.6;
}

.round-button .line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3.5px;
    background-color: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.round-button .line::before,
.round-button .line::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 3.5px;
    background-color: #fff;
    border-radius: 2px;
}

.round-button .line::before {
    transform: rotate(-90deg);
}

.round-button .line::after {
    transform: rotate(90deg);
}

#toggle:checked ~ .box-main .box-login {
    transform: rotateX(180deg);
}

#toggle:checked ~ .box-main .box-register {
    transform: rotateX(0deg);
}

#toggle:checked ~ .tile-overlay {
    visibility: visible;
    transition-timing-function: ease-out;
    opacity: 0.8;
}

#toggle:not(:checked) ~ .tile-overlay {
    visibility: visible;
    transition-timing-function: ease-in;
    opacity: 0;
}

.form-login, .form-register {
    display: flex;
    flex-direction: column;
    width: 330px;
}

.form-textbox {
    word-break: normal;
    position: relative;
}

.form-textbox-input {
    font-size: 17px;
    line-height: 1.23536;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    width: 100%;
    height: 3.29412rem;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #d2d2d7;
    box-sizing: border-box;
    margin-bottom: 0.82353rem;
    padding: 1.05882rem 0.94118rem 0;
    text-align: left;
    appearance: none;
    color: #1d1d1f;
    text-overflow: ellipsis;
}

.form-textbox-input:focus {
    appearance: none;
    border-color: #0070c9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(131, 192, 253, 0.5);
}

.form-textbox-label {
    color: #86868b;
    position: absolute;
    pointer-events: none;
    transition-timing-function: ease-in;
    transition-duration: 0.125s;
    top: 1.05882rem;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 32px);
    left: 1rem;
    font-size: 17px;
    line-height: 1.23536;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.form-textbox-input:focus ~ .form-textbox-label,
.form-textbox-input:valid ~ .form-textbox-label {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    top: 0.58824rem;
    color: #6e6e73;
}

.form-textbox.is-error .form-textbox-input:not(:focus) {
    border-color: #e30000;
    background-color: #fff2f4;
}

.is-error .form-textbox-label,
.is-error .form-textbox-input:valid ~ .form-textbox-label {
    color: #e30000;
}

.form-textbox.is-error .form-textbox-input:not(:disabled):focus ~ .form-textbox-label {
    color: #e30000;
}

.form-button-block {
    margin-top: 1.9rem;
}

button {
    background: none;
    border: 0;
    box-sizing: content-box;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    overflow: visible;
    vertical-align: inherit;
}

button:disabled {
    pointer-events: none;
    opacity: 0.42
}

.button {
    cursor: pointer;
    /*display: inline-block;*/
    /*text-align: center;*/
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    min-width: 28px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #0071e3;
    color: #fff;
}

.button:hover {
    background: #0077ed;
}

.button:focus {
    outline: none;
}

.button:active {
    background: #006edb;
    outline: none;
}

.button-first {
    height: 3.29412rem;
    background: #0071e3;
    box-sizing: border-box;
    width: 100%;
}

.form-button-black {
    background: #1d1d1f;
    color: #fff;
    height: 3.29412rem;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(29, 29, 31, 0.9);
    line-height: 1.47059;
}

.form-button-black:hover {
    background: #272729;
}

.form-button-black:active {
    background: #18181a;
}

.button-register {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    margin-top: 2.4rem;
    margin-bottom: 0;
}

.button-register:not(.button):not(a) {
    color: #6e6e73;
    text-align: center;
}

a.button-register {
    color: #0070c9;
    letter-spacing: inherit;
}

a:link, a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:active {
    text-decoration: none;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.form-tooltip {
    position: relative;
    font-size: 0;
}

.form-tooltip-wrapper .form-tooltip-pointer-left {
    left: auto;
    right: auto;
}

.form-tooltip .form-tooltip-pointer-left:after {
    left: 1.03rem;
}

.form-tooltip .form-tooltip-info {
    background-color: #e8e8ed;
}

.form-tooltip-info {
    position: absolute;
    min-width: 5rem;
    max-width: 24rem;
    width: max-content;
    background-color: #e8e8ed;
    height: auto;
    display: none;
    box-sizing: border-box;
    font-size: 14px;
    letter-spacing: -0.016em;
    line-height: 1.2857742857;
    border-radius: 12px;
    padding: 0.7058823529rem 1rem 0.7647058824rem;
    z-index: 10;
}

.form-register .form-tooltip-password-validation .form-tooltip-info {
    max-width: 20rem;
}

.form-register .form-tooltip-wrapper .tooltip-above-form {
    bottom: 4.8rem;
}

.form-register .form-tooltip-info:after {
    content: "";
    position: absolute;
    bottom: -0.2352941176rem;
    width: 0.8823529412rem;
    height: 0.8823529412rem;
    background-color: #e8e8ed;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    transform: rotate(-45deg);
}

.form-register .form-tooltip:hover .form-tooltip-info,
.form-register .form-tooltip-wrapper:focus-within .form-tooltip-info {
    display: block;
}

.form-register .form-tooltip-content {
    margin-top: 6px;
}

.form-register ul.form-tooltip-content {
    list-style-type: none;
}

.form-register span.password-text {
    color: #1d1d1f;
}

.form-register .percentage-container {
    margin-left: 2px;
}

.form-register .password-strength,
.form-register .password-strength-container section:not(:first-child) {
    margin-top: .8em;
}

.form-register .progress {
    background-color: #d2d2d7;
    border-radius: 3px;
    overflow: hidden;
    height: 5px;
    margin-bottom: 7px;
}

.form-register .progress-bar {
    height: 5px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.form-register .progress-bar.weak {
    background-color: #e30000;
}

.form-register .progress-bar.moderate {
    background-color: #f56300;
}

.form-register .progress-bar.strong {
    background-color: #008009;
}

.form-register .password-requirement {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.form-register .password-requirement li {
    display: flex;
    align-items: center;
}

.form-register .password-requirement .password-text {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.56);
}

.form-register .password-requirement .password-text.text-color-glyph-green,
.form-register .password-requirement .password-text.text-color-glyph-green span::before {
    color: #008009;
}

.form-register .password-requirement .icon {
    display: inline-block;
    width: 14px;
    margin-right: 2px;
}

.form-register .password-requirement .icon-check::before {
    content: "✓";
    font-weight: bold;
}

.pop-container {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.pop-bottom {
    background-color: #fae9a3;
    position: absolute;
    width: 305px;
    border-radius: 5px;
    border: 1px solid rgba(185, 149, 1, 0.47);
    box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.1);
    margin-top: 14px;
    padding: 11px;
}

.pop-bottom p {
    margin-bottom: 0;
    margin-top: 0;
    white-space: pre-line;
}

.pop-bottom::before {
    width: 15px;
    height: 15px;
    background-color: #fae9a3;
    content: "";
    position: absolute;
    left: 47.2%;
    transform: rotate(135deg) skewX(5deg) skewY(5deg);
    top: -8px;
    border-left: 1px solid rgba(185, 149, 1, 0.47);
    border-bottom: 1px solid rgba(185, 149, 1, 0.47);
    box-shadow: -1px 1px 2px -1px rgba(185, 149, 1, 0.47);
}

.pop-headline {
    text-align: center;
    color: #494949;
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 600;
    letter-spacing: -0.016em;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner svg {
    height: 13px;
    width: 13px;
    animation: spin 1s linear infinite;
    display: block;
    fill: none;
    stroke: #ffffff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}

.button.spinner svg {
    margin-inline-end: 6px;
}
