.login__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 350px;
}

.register-link-container {
    text-align: center;
    color: #999999;
    font-weight: 600;
    margin-top: 10px;
}

.login__heading {
    text-align: center;
    margin-bottom: 15px;
}

.register-link-container a,
.forgot-password-link {
    color: #2381FF;
    font-weight: 600;
}

.auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-link {
    margin: auto;
}

.button:not(.button--workspace) {
    margin-top: 15px;
}

img {
    width: 270px;
}

.login__label {
    font-size: 12px;
}

@media(max-width: 550px) {
    img {
        width: 200px;
    }

    .login__form {
        width: 270px;
    }
}

.login .hidden-form {
    display: none;
}

.toggle-buttons-wrap button.active {
    background: var(--color-bg-hover);
    border-color: var(--color-text-secondary);
    color: var(--color-text-active);
    transition: all 0.3s ease-out;
}

.h2 {
    font-size: 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.back-button svg {
    width: 35px;
    height: 35px;
}

.h2~span {
    margin-bottom: 40px;
    font-weight: 400;
    display: flex;
    gap: 4px;
}

.h2 {
    margin-bottom: 40px;
}

.h2:has(~ span) {
    margin-bottom: 10px;
}

.register__heading {
    /* margin-bottom: 40px; */
}

.toggle-buttons-wrap {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.actions {
    justify-content: space-between;
    align-items: center;
}

.actions a {
    text-decoration: underline;
}

.button .js__register__button {
    margin-top: 0;
}

.item--checkbox {
    margin-top: 18px;
    display: flex;
}

.item--checkbox input {
    width: unset;
}

.item--checkbox .item__label {
    margin: 0;
}

.recover-email-message {
    padding: 10px 0;
    color: red;
    margin-top: 35px;
}

.recover-email-message a {
    text-decoration: underline;
}

.terms-overlay {
    position: fixed;
    z-index: 10050;
    inset: 0;
    background: rgba(24, 27, 34, 0.95);
    display: flex;
    justify-content: center;
    transition: opacity 0.18s;
    align-items: center;
}

.terms-overlay .block {
    max-width: 700px;
    overflow: auto;
    height: 80vh;
}

.address-overlay__close {
    background: none;
    border: none;
    color: var(--color-text-teritary);
    cursor: pointer;
    border-radius: 0.6em;
    transition: background 0.18s;
    padding: 0.4em;
    display: flex;
}

.auth {
    margin-top: 20px 0;
}

.auth>.container {
    padding-top: 64px;
}

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

.login__image svg {
    width: 100%;
    height: 100%;
}

.login__logo-img {
    width: auto;
    max-width: 521px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.input--username {
    margin-bottom: 10px;
}

.login__form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 85px;
}

@media(max-width: 992px) {
    .login__image {
        display: none;
    }
}

@media(min-width: 992px) {
    .login {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    .login.login--no-logo {
        display: block;
    }
}

.login--no-logo .login__form {
    margin: 0 auto;
}

.register {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: auto;
}

.register .item--checkbox {
    gap: 8px;
}

.toggle-buttons-wrap button {
    max-width: 417px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 30px 40px;
    font-size: 1.18rem;
    color: var(--color-text-gray);
    align-items: center;
    border: 2px solid #E5E8F2;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.toggle-buttons-wrap button p {
    font-size: 1rem;
    color: var(--color-text-gray);
    margin-top: 16px;
    font-weight: 400;
}


.toggle-buttons-wrap button svg {
    margin-bottom: 22px;
}

@media(max-width:580px) {
    .toggle-buttons-wrap {
        flex-direction: column;
    }

    .toggle-buttons-wrap button {
        max-width: 100%;
    }

    .h2 {
        font-size: 1.35rem;
    }

    .login span,
    .login .back-button {
        font-size: .8rem;
    }

    .h2~span {
        flex-wrap: wrap;
    }
}

.social__wrapper {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.social__login {
    background-color: #1a73e8;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-transition: background-color .218s, border-color .218s, opacity .218s;
    transition: background-color .218s, border-color .218s, opacity .218s;
    background-image: none;
    cursor: pointer;
    font-family: "Google Sans", arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: .25px;
    outline: none;
    overflow: hidden;
    position: relative;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
}

.social__login:hover,
.social__login:focus {
    box-shadow: none;
    border-color: rgb(210, 227, 252);
    outline: none;
    opacity: 0.8;
}

.social__login button {
    -webkit-flex-grow: 1;
    color: #fff;
    -webkit-box-flex: 1;
    flex-grow: 1;
    font-family: "Google Sans", arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.social__login-logo {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    background-color: #fff;
    height: 36px;
    margin-left: 2px;
    margin-right: 3px;
    min-width: 36px;
    width: 36px;
}

.social__login-text {
    width: 100%;
    text-align: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.social__login svg path {
    color: #1a73e8;
}