body {
    background-color: rgb(255, 255, 255);
    color: rgb(29, 29, 31);
    display: block;
    font-family: 'SF Pro Display', 'SF Pro SC', 'SF Pro Text', 'SF Pro Icons';
    margin: 0;
    padding: 0;
}

button,
input {
  font-family: inherit;
}

header {
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    backdrop-filter: saturate(1.8) blur(20px);
    background-color: rgba(250, 250, 252, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.16);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    display: block;
    height: auto;
    line-height: 24px;
    min-width: 368px;
    position: sticky;
    top: 0px;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    height: 52px;
    justify-content: space-between;
    margin: 0px auto;
    max-width: 980px;
    padding: 0px 22px;
}

.nav-1 {
    fill: rgb(29, 29, 31);
}

.nav-2 {
    display: flex;
    height: 24px;
    margin: 14px 0px;
    padding: 0px;
}

.nav-2 a {
    background-color: rgb(0, 113, 227);
    border-radius: 50px;
    box-sizing: border-box;
    color: rgb(245, 245, 247);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    height: auto;
    line-height: 1;
    padding: 5px 10px;
    text-decoration-line: none;
}

.nav-2 a:hover {
    background-color: rgb(0, 118, 223);
}

.nav-2 a:active {
    background-color: rgb(0, 110, 219);
}

main {
    display: block;
    height: auto;
    min-width: 368px;
    opacity: 1;
    width: 100%;
}

.main-1 {
    display: block;
    height: auto;
    margin: 52px auto 0px auto;
    max-width: 980px;
    min-width: 340px;
    padding: 0px 22px;
}

.main-2 {
    display: flex;
    font-size: 40px;
    font-weight: 600;
    height: auto;
    justify-content: center;
    line-height: 1.1;
    margin-bottom: 52px;
    position: relative;
    width: auto;
}

.logobg {
    width: 180px;
    height: 180px;

    background-image: url('../media/signin_bg.png');
    background-size: cover;
    background-repeat: no-repeat;

    -webkit-mask-image: url('../media/blur.svg');
    -webkit-mask-size: 180px 180px;
    -webkit-mask-repeat: no-repeat;

    mask-image: url('../media/blur.svg');
    mask-size: 180px 180px;
    mask-repeat: no-repeat;
}

.logo {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url('../media/signin_bg.png');
    background-size: cover;
    background-repeat: no-repeat;

    -webkit-mask-image: url('../media/logo.svg');
    -webkit-mask-size: 160px 160px;
    -webkit-mask-repeat: no-repeat;

    mask-image: url('../media/logo.svg');
    mask-size: 160px 160px;
    mask-repeat: no-repeat;
}

.main-3 {
    display: block;
    height: 56px;
    margin: 0px auto;
    margin-bottom: 10px;
    max-width: 460px;
    min-width: 340px;
    position: relative;
}

.main-3 input {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgb(134, 134, 139);
    border-radius: 12px;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    color: rgb(29, 29, 31);
    font-family: 'SF Pro Text';
    font-size: 17px;
    font-weight: 400;
    height: 100%;
    line-height: 1;
    padding-top: 18px;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 0px;
    width: 100%;
}

.main-3 input.error {
    background-color: rgb(255, 242, 244);
    border-color: rgb(227, 0, 0);
}

.main-3 span {
    box-sizing: border-box;
    color: rgb(110, 110, 115);
    display: block;
    font-size: 17px;
    font-weight: 400;
    height: auto;
    left: 20px;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    top: 20px;
    transition-duration: 0.125s;
    transition-timing-function: ease-in;
    width: auto;
}

.main-3 span.error {
    color: rgb(227, 0, 0);
}

.main-3 input:focus {
    border-color: rgb(0, 113, 227);
    border-width: 2px;
    outline: none;
}

.main-3 input:focus+span,
.main-3 input:not(:placeholder-shown)+span {
    font-size: 12px;
    height: auto;
    line-height: 1;
    top: 10px;
}

.main-3 input::placeholder {
    opacity: 0;
}

.main-4 {
    display: flex;
    height: 56px;
    justify-content: space-between;
    margin: 0px auto;
    max-width: 460px;
    min-width: 340px;
}

.main-41 {
    align-items: center;
    background-color: rgb(0, 113, 227);
    border-radius: 12px;
    border-width: 0px;
    box-sizing: border-box;
    color: rgb(245, 245, 247);
    cursor: pointer;
    display: flex;
    font-size: 17px;
    font-weight: 400;
    justify-content: center;
    line-height: 1;
    margin-right: 5px;
    padding: 0px;
    width: 100%;
}

.main-41 a:hover {
    background-color: rgb(0, 118, 223);
}

.main-41 a:active {
    background-color: rgb(0, 110, 219);
}

.main-41:disabled {
    opacity: 0.42;
    pointer-events: none;
}

.main-41-r::before {
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-name: rotation;
    animation-timing-function: linear;
    border-color: rgb(245, 245, 247);
    border-radius: 50%;
    border-style: solid;
    border-top-color: rgba(0, 0, 0, 0);
    border-width: 2px;
    content: "";
    display: inline-block;
    height: 17px;
    width: 17px;
}

.main-42 {
    align-items: center;
    background-color: rgb(0, 113, 227);
    border-radius: 12px;
    border-width: 0px;
    box-sizing: border-box;
    color: rgb(245, 245, 247);
    cursor: pointer;
    display: flex;
    font-size: 17px;
    font-weight: 400;
    justify-content: center;
    line-height: 1;
    margin-left: 5px;
    padding: 0px;
    width: 100%;
}

.main-42:hover {
    background-color: rgb(0, 118, 223);
}

.main-42:active {
    background-color: rgb(0, 110, 219);
}

.main-42:disabled {
    opacity: 0.42;
    pointer-events: none;
}

.main-42-r::before {
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-name: rotation;
    animation-timing-function: linear;
    border-color: rgb(245, 245, 247);
    border-radius: 50%;
    border-style: solid;
    border-top-color: rgba(0, 0, 0, 0);
    border-width: 2px;
    content: "";
    display: inline-block;
    height: 17px;
    width: 17px;
}

.main-5 {
    color: rgb(227, 0, 0);
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    margin: auto;
    margin-bottom: 10px;
    max-width: 460px;
    min-width: 340px;
}

.main-5-error::before {
    content: "";
}

.hidden {
    display: none;
}

.main-6 {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    margin: auto;
    margin-bottom: 10px;
    max-width: 460px;
    min-width: 340px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0px 14px;
    }

    .main-1 {
        padding: 0px 14px;
    }

    .main-2 {
        font-size: 28px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: rgb(0, 0, 0);
        color: rgb(245, 245, 247);
    }

    header {
        background-color: rgba(22, 22, 23, 0.8);
        border-bottom-color: rgba(255, 255, 255, 0.24);
    }

    .nav-1 {
        fill: rgb(245, 245, 247);
    }

    .main-3 input {
        background-color: rgba(255, 255, 255, 0.04);
        border-color: rgb(110, 110, 115);
        color: rgb(245, 245, 247);
    }

    .main-3 input.error {
        background-color: rgba(227, 0, 0, 0.04);
    }

    .main-3 span {
        color: rgb(134, 134, 139);
    }

    .main-3 input:focus {
        background-color: rgba(255, 255, 255, 0.04);
    }
}