.authLayout {
    align-items: flex-end;
    padding: 0 20px
}

.oauth-form.oauth-register-form {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 387px
}

.authCaptcha {
    margin-bottom: 20px;
    margin-top: 12px
}

.authBioWrapper {
    display: flex;
    align-items: center;
    justify-content: left;
    min-height: 60vh
}

.authBioLayout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%
}

.authBioForgotBlock {
    display: none;
    padding: 30px 0 40px;
    max-width: 590px;
    width: 100%;
    border-radius: 40px;
    background: #f9f3f1;
    justify-content: center;
    position: relative;
    margin-top: 125px;
    margin-bottom: 200px
}

@media (min-width: 1200px) {
    .authBioLayout {
        gap:95px
    }
}

.authBioShapes {
    flex: 0 1 496px;
    max-width: 700px;
    position: relative
}

.authBioShapes img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 590px;
    object-fit: contain
}

.authBioCheckboxLink {
    color: #db0075;
    text-decoration: none
}

.authBioEyeButton img {
    display: block;
    width: 24px;
    height: 24px
}

.authBioYandexBtn img {
    display: block;
    width: 24px;
    height: 24px
}

.ber-authBioForgotImg {
    max-width: 133px;
    max-height: 100px;
    position: absolute;
    top: -50px;
    left: -67px
}

.authBioTitle {
    margin: 0;
    color: #14281e;
    font-family: 'DrukWideCyr',sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0
}

.authBioForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px
}

.authBioFormForgot {
    width: 100%;
    max-width: 430px;
    padding: 0 20px
}

.authBioHeaderBlock {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px
}

.authBioInputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px
}

.authBioInputEmail {
    background: #f5f3f1;
    height: 52px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 4px 20px 6px 20px;
    &:has(input: focus) {
        background:#eeebe8
    }
}

.authBioFieldsRow {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px
}

.authBioInputPassword {
    background: #f5f3f1;
    height: 52px;
    border-radius: 40px;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4px 48px 6px 20px;
    &:has(input: focus) {
        background:#eeebe8
    }
}

.authBioInputField {
    appearance: none;
    outline: none;
    border: none;
    background: transparent;
    color: #14281e;
    font-size: 20px;
    width: 100%;
    &::placeholder {
        color: #b7b7b7
    }
}

.authBioEyeButton {
    position: absolute;
    top: 13px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: none;
    background: 0 0;
    cursor: pointer;
    color: #14281e
}

.authBioPasswordRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.authBioCheckbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-montserrat),Arial,sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 100%
}

.rememberMe {
    align-items: center;
}

.authBioCheckboxInput {
    width: 24px;
    height: 24px;
    accent-color: #db0075
}

.authBioCheckboxLabel {
    color: #1f2d26;
    font-weight: 500;
    font-size: 17px;
    font-family: 'Montserrat',sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 100%
}

.authBioForgotBtn {
    background: 0 0;
    border: none;
    color: #db0075;
    cursor: pointer;
    font-family: 'Montserrat',sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 100%
}

#login_form .authBioForgotBtn,#login_form .checkbox__text,#login_form .authBioCheckboxLabel {
    font-size: 16px
}

.authBioBtns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px
}

.authBioPrimaryBtn {
    height: 54px;
    border: none;
    border-radius: 40px;
    background: #db0075;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    &:hover {
        background: #c5006a
    }
}

.authBioDivider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 24px
}

.authBioDividerLine {
    flex: 1;
    height: 1px;
    background: #e0dfde
}

.authBioDividerText {
    color: #b7b7b7;
    font-size: 20px
}

.authBioYandexBtn {
    position: relative;
    height: 54px;
    border: 1px solid #000;
    border-radius: 40px;
    background: #fff;
    color: #14281e;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.authBioRegistration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-family: 'Montserrat',sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 100%
}

.authBioExtraRegistrationLinks {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 12px;
    font-weight: 700;
    font-size: 20px
}

.authBioExtraRegistrationLink {
    color: #1f2d26
}

.authBioExtraRegistrationLink:hover {
    color: #f91e93
}

.authBioExtraRegistrationLink-errorMessage {
    font-weight: 700
}

.authBioRegistrationHint {
    color: #b7b7b7
}

.authBioRegistrationLink {
    background: 0 0;
    border: none;
    color: #db0075;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat',sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 100%
}

.oauth-form-page .wrapper-log-oauth {
    display: none;
    margin: 0
}

.ber-wrapper-log-oauth {
    border-radius: 4px;
    padding: 20px;
    background: #ffffc6
}

.ber-oauth-form-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 120px
}

.register-success {
    display: flex;
    flex: 0 1 590px;
    max-width: 590px;
    width: 100%;
    align-items: center;
    justify-content: center
}

.rs-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%
}

.rs-title {
    margin: 0;
    color: #0d1b16;
    font-family: 'DrukWideCyr',sans-serif;
    font-weight: 700;
    font-size: clamp(16px,2vw + 1rem,40px)
}

.rs-text {
    margin: 0;
    color: #6b6b6b;
    font-family: 'Montserrat',sans-serif;
    font-weight: 400;
    line-height: 120%;
    font-size: clamp(14px,1vw + 14px,20px)
}

.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 24px;
    border-radius: 40px;
    background: #db0075;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat',sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    max-width: 258px
}

.rs-btn:hover {
    background: #c5006a
}

.oauth-form-page .oauth-wrapper.oauth-success-state {
    display: flex;
    align-items: center !important;
    justify-content: center;
    gap: 20px
}

.forgot-open .authBioTitle {
    font-size: 32px
}

#login_form .modal-body {
    height: auto !important
}

#login_form .modal-content {
    position: relative
}

@media (min-width: 481px) {
    #login_form .modal-body {
        border-radius:30px
    }
}

#login_form .authBioPasswordRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap
}

#login_form .authBioCheckbox {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

#login_form .authBioCheckboxInput {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #db0075;
    background: #fff;
    box-sizing: border-box;
    position: relative
}

#login_form .authBioCheckboxInput:checked {
    background: #db0075
}

#login_form .authBioCheckboxInput:checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg)
}

#login_form .authBioCheckboxLabel {
    font-family: 'Montserrat',sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    color: #1f2d26
}

#login_form .checkbox__text {
    position: static;
    padding-left: 0
}

#login_form .checkbox__text:before,#login_form .checkbox__text:after {
    content: none !important
}

#login_form .checkbox {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: 0 0;
    position: static
}

#login_form .checkbox:after {
    content: none !important
}

@media (min-width: 1200px) {
    .oauth-form-page .oauth-wrapper.oauth-success-state {
        align-items:flex-start !important
    }

    .oauth-form-page .oauth-wrapper.oauth-success-state .rs-content {
        margin-top: 60px
    }
}

.oauth-form-page .oauth-wrapper.oauth-success-state .authBioShapes {
    display: block
}

.ber-auth-bio-shapes {
    flex: 0 1 590px
}

.rs-image-wrapper {
    flex: 0 1 590px;
    max-width: 590px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.rs-image {
    width: 100%;
    height: auto;
    max-width: 590px;
    max-height: 590px;
    object-fit: contain
}

@media (max-width: 1200px) {
    .rs-image-wrapper {
        flex:0 1 auto;
        max-width: 100%
    }

    .rs-image {
        max-width: min(590px,max(250px,40vw));
        max-height: min(590px,max(250px,40vw))
    }
}

@media (max-width: 992px) {
    .forgot-open .authBioTitle {
        font-size:28px
    }
}

@media (max-width: 650px) {
    .rs-image-wrapper {
        order:-1
    }

    .rs-image {
        max-width: 250px;
        max-height: 250px
    }

    .forgot-open .authBioTitle {
        font-size: 24px
    }

    .authBioHeaderBlock {
        margin-bottom: 20px;
        align-items: center
    }

    .authBioLayout {
        align-items: center !important;
        flex-direction: column;
        gap: 24px
    }

    .authBioShapes {
        display: none
    }

    .ber-authBioForgotImg {
        top: -75px;
        left: auto
    }

    .register-success {
        flex: 0 1 auto;
        max-width: 430px
    }

    .ber-auth-bio-shapes {
        flex: 0 1 auto
    }

    .oauth-form-page .oauth-wrapper.oauth-success-state {
        flex-direction: column;
        gap: 10px
    }

    .oauth-form-page .oauth-wrapper.oauth-success-state .authBioShapes {
        width: 100%;
        max-width: 250px;
        height: 250px
    }

    .oauth-form-page .oauth-wrapper.oauth-success-state .authBioShapes img {
        width: 100%;
        height: 100%;
        max-width: 250px;
        max-height: 250px;
        object-fit: contain
    }
}

@media (max-width: 480px) {
    #login_form .modal-dialog {
        margin:0;
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: flex-end;
        min-height: 100vh
    }

    #login_form .modal-content {
        max-width: 100%;
        width: 100%
    }

    #login_form .modal-body {
        width: 100%
    }

    #login_form .close_login {
        top: 18px;
        right: 18px;
        z-index: 10
    }

    .authBioExtraRegistrationLinks {
        font-size: 19px
    }
}

@media (max-width: 450px) {
    .rs-btn {
        height:46px;
        font-size: 16px;
        max-width: 335px
    }
}

@media (max-width: 420px) {
    .rs-image {
        width:250px;
        height: 250px;
        min-width: 250px;
        min-height: 250px
    }

    .forgot-open .authBioTitle {
        font-size: 20px
    }

    .authBioTitle {
        font-size: 20px
    }

    .authBioPasswordRow {
        gap: 8px
    }

    .authBioCheckboxLabel {
        font-size: 15px
    }

    .authBioForgotBtn {
        font-size: 18px
    }
}
