* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Manrope, sans-serif;
    background-color: #eff5ff;
    color: #343b4c;
    margin: 0;
    padding: 0;
    height: 100%;
}

.styles_page__5GpRv {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.styles_alignMiddle__ndTX3 {
    align-items: center;
    justify-content: center;
}

.styles_pageInner___1Qwj {
    width: 680px;
    padding: 50px 0px;
    margin: 0 auto;
}

.styles_popup__hP12r {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: rgba(49, 94, 251, 0.4) 0px 10px 10px -10px;
    overflow: hidden;
}


.styles_popupInner__aoInk {
    padding: 20px 20px 0px;
}

.styles_popupTitle__MIrZb {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    color: #343b4c !important;
    margin: 0 !important;
    text-align: left !important;
}

.styles_columns__2_rhe {
    display: flex;
    padding: 30px 0px 19px;
    width: 580px;
}

.styles_leftColumn__k_O3r {
    width: 320px;
    margin: 0px 40px 0px 0px;
    flex: none;
}

.styles_rightColumn__paq_x {
    flex: 1;
}

.styles_title__tsamW,
.styles_title__KAxqM {
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    color: #343b4c;
    margin-bottom: 20px;
}

section {
    margin-bottom: 20px;
}

.styles_inner__YrgIP {
    position: relative;
}

.rc__teWry {
    position: relative;
}

.rc__YH74C {
    position: relative;
}

.rc__7717mh {
    position: relative;
    background-color: #eff5ff;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.2s;
    height: 40px;
    width: 320px;
}

.rc__7717mh:hover {
    background-color: #e0ebff;
}

.rc__7717mh.focused {
    background-color: #e0ebff;
    border-color: #315efb;
}

.rc__5ayxcx {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
    width: 320px;
}

.rc__7b62b6 {
    width: 320px;
    height: 40px;
}

.rc__6ganxn {
    width: 320px;
    height: 40px;
}

.rc__7zy89y {
    width: 100%;
    padding: 0px 15px;
    height: 40px;
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: #343b4c;
    background: transparent;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.rc__7zy89y::placeholder {
    color: #8d96b2;
}

.rc__7k9yds {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    width: 20px;
    height: 20px;
    color: #8d96b2;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc__6ganxn .rc__7zy89y {
    padding: 0px 40px 0px 15px;
}

.rc__7k9yds:hover {
    color: #2C54E2;
}

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

.rc__uNt7V {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 20px;
}

.rc__vp8bc {
    display: none;
}

.rc__fTG7s {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.rc__A1sPU {
    width: 20px;
    height: 20px;
    background-color: #eff5ff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rc__vp8bc:checked + .rc__fTG7s .rc__A1sPU {
    background-color: #315efb;
    color: #fff;
}

.rc__egS76 {
    opacity: 0;
    transition: opacity 0.2s;
}

.rc__vp8bc:checked + .rc__fTG7s .rc__egS76 {
    opacity: 1;
}

.rc__rDbCB {
    color: #343b4c;
}

.styles_link___lR7s {
    color: #315efb;
    text-decoration: none;
    transition: color 0.2s;
}

.styles_link___lR7s:hover {
    color: #2c54e2;
}

.styles_text___T8Lg {
    font-size: 15px;
    line-height: 20px;
}

.styles_links__20_ex {
    display: flex;
    justify-content: space-between;
    margin: 10px 0px 15px 0px;
    padding: 0px;
}

.rc__76a9k1 {
    width: 320px;
    height: 40px;
    padding: 0px 20px;
    background-color: #315efb;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: Arial;
    font-size: 13.3333px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc__76a9k1:hover {
    background-color: #2c54e2;
}

.rc__dgxcmd {
    font-family: Manrope, sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-transform: none;
}

.rc__76a9k1:active {
    background-color: #274bc8;
}

.rc__76a9k1:disabled {
    background-color: #f5f7f8;
    color: #afb5c9;
    cursor: not-allowed;
}

.styles_oauth__71QvT {
    margin-top: 0px;
}

.styles_list__dSWiO {
    display: flex;
    flex-wrap: wrap;
    gap: normal;
    width: 225px;
    margin: -5px 0px 0px -5px;
}

.styles_provider__qQdA5 {
    flex: none;
}

.styles_button__lw6RX {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    margin: 5px 0px 0px 5px;
}

.styles_button__lw6RX:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid #E0EBFF;
    border-radius: 50%;
    transition: border-color 0.2s;
}

.styles_button__lw6RX:hover:before {
    border-color: #D1E2FF;
}

.styles_button__lw6RX:active:before {
    border-color: #C1D8FF;
}

.styles_icon__qkgOd {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.styles_providerIcon__be8Hl {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.styles_agreement__V9MoN {
    font-size: 13px;
    color: #777e98;
    line-height: 1.4;
    margin-top: 20px;
}

.styles_agreement__V9MoN a {
    color: #315efb;
    text-decoration: none;
}

.styles_agreement__V9MoN a:hover {
    color: #2c54e2;
}

.styles_mobile_agreement {
    display: none;
}

.styles_popupFooter__1pUND {
    border-top: 1px solid #e8eaf0;
    padding: 15px 20px;
    text-align: center;
    width: 680px;
    height: 50px;
    box-sizing: border-box;
}

.styles_footer__wCsAz {
    font-size: 15px;
    line-height: 20px;
}

.styles_link__lCdad {
    color: #315efb;
    text-decoration: none;
    font-weight: 500;
}

.styles_link__lCdad:hover {
    color: #2c54e2;
}

div[style*="color: red"] {
    background-color: #ffeeed;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
}

/* Планшеты */
@media (max-width: 768px) {
    .styles_pageInner___1Qwj {
        width: 310px;
        padding: 12px 0px;
        margin: 0 auto;
    }

    .styles_columns__2_rhe {
        flex-direction: column;
        width: 100% !important;
        height: auto;
        padding: 20px 0px 15px;
    }

    .styles_leftColumn__k_O3r {
        width: 100% !important;
        margin: 0px 0px 20px 0px !important;
    }

    .rc__5ayxcx,
    .rc__6ganxn {
        width: 100% !important;
    }

    .styles_title__tsamW,
    .styles_title__KAxqM {
        font-family: Manrope, sans-serif !important;
        font-size: 14px;
        margin-top: 4px !important;
        margin-bottom: 17px !important;
        color: #8d96b2 !important;
        text-align: center !important;
    }

    .styles_links__20_ex {
        text-align: center;
    }

    .styles_checkboxGroup__w1ZKe {
        justify-content: center;
    }

    .styles_agreement__V9MoN {
        font-family: Manrope, sans-serif !important;
        font-size: 13px !important;
        color: #777e98 !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    .styles_button__y4C2T {
        width: 100%;
        margin-top: 15px;
    }

    .rc__76a9k1 {
        width: 100%;
        height: 40px;
        padding: 0px 20px;
        margin-bottom: 0 !important;
    }

    .styles_oauth__71QvT {
        margin-top: 0px !important;
        margin-bottom: 7px !important;
    }

    /* Скрываем "С помощью почты" на мобильных устройствах */
    .styles_title__tsamW {
        display: none !important;
    }

    .rc__BVnAD.rc__E79Z1.styles_footer__wCsAz {
        margin-top: 4px !important;  /* ← Максимальное подтягивание */
    }

    /* Центрируем контейнер футера и ссылку "Регистрация" на мобильных устройствах */
    .rc__BVnAD.rc__E79Z1.styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_link___lR7s.styles_link__lCdad {
        font-family: Manrope, sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 20px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 8px 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .styles_list__dSWiO {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .styles_list__dSWiO {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .styles_footer__wCsAz {
        margin-top: 50px !important;
        padding-bottom: 140px !important;
    }

    .styles_agreement__V9MoN {
        font-family: Manrope, sans-serif !important;
        font-size: 13px !important;
        color: #777e98 !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    /* Скрываем "С помощью почты" на мобильных устройствах */
    .styles_title__tsamW {
        display: none !important;
    }

    .styles_oauth__71QvT {
        margin-top: 0px !important;
    }

    .styles_agreement__V9MoN {
        font-family: Manrope, sans-serif !important;
        font-size: 13px !important;
        color: #777e98 !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    /* Центрируем контейнер футера и ссылку "Регистрация" на мобильных устройствах */
    .rc__BVnAD.rc__E79Z1.styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_link___lR7s.styles_link__lCdad {
        font-family: Manrope, sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 20px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 8px 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .styles_list__dSWiO {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .styles_list__dSWiO {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .rc__76a9k1 {
        width: 100%;
        height: 40px;
        padding: 0px 20px;
        margin-bottom: 0 !important;
    }

    .styles_oauth__71QvT {
        margin-top: 0px !important;
    }

    /* Скрываем "С помощью почты" на мобильных устройствах */
    .styles_title__tsamW {
        display: none !important;
    }

    /* Скрываем оригинальный текст соглашения и показываем в футере */
    .styles_agreement__V9MoN {
        display: none !important;
    }

    .styles_mobile_agreement {
        display: block !important;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .styles_pageInner___1Qwj {
        width: 95%;
        max-width: 380px;
        padding: 15px 15px;
        margin: 0 auto;
    }

    .styles_columns__2_rhe {
        width: 100% !important;
        padding: 12px 0px 10px !important;
    }

    .styles_leftColumn__k_O3r {
        width: 100% !important;
        margin: 0px 0px 20px 0px !important;
    }

    .rc__5ayxcx,
    .rc__6ganxn {
        width: 100% !important;
    }

    .styles_popup__hP12r {
        border-radius: 8px;
        margin: 15px;
    }

    .styles_popupInner__aoInk {
        padding: 15px 15px 0px;
        min-height: 15px;
    }

    .styles_popupFooter__1pUND {
        width: 100% !important;
        padding: 0px 0px 80px !important;
        box-sizing: border-box !important;
        min-height: 110px !important;
    }

    .styles_popupTitle__MIrZb {
        font-size: 21px !important;
        font-weight: 700 !important;
        line-height: 30px !important;
        color: #343b4c !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .styles_columns__2_rhe {
        padding: 20px 0px 10px !important;
    }

    .styles_title__tsamW,
    .styles_title__KAxqM {
        font-family: Manrope, sans-serif !important;
        font-size: 15px;
        font-weight: 500 !important;
        line-height: 20px !important;
        margin-top: 4px !important;
        margin-bottom: 17px !important;
        color: #8d96b2 !important;
        text-align: center !important;
    }

    .styles_links__20_ex {
        text-align: center;
    }

    .styles_checkboxGroup__w1ZKe {
        justify-content: center;
    }

    .styles_oauth__71QvT {
        margin-top: 0px !important;
    }

    .styles_agreement__V9MoN {
        font-family: Manrope, sans-serif !important;
        font-size: 13px !important;
        color: #777e98 !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    .styles_button__y4C2T {
        width: 100%;
        margin-top: 15px;
    }

    .rc__76a9k1 {
        width: 100%;
        height: 40px;
        padding: 0px 20px;
        margin-bottom: 0 !important;
    }

    .styles_oauth__71QvT {
        margin-top: 0px !important;
    }

    .styles_agreement__V9MoN {
        font-family: Manrope, sans-serif !important;
        font-size: 13px !important;
        color: #777e98 !important;
        line-height: 1.4 !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    /* Центрируем контейнер футера и ссылку "Регистрация" на мобильных устройствах */
    .rc__BVnAD.rc__E79Z1.styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_footer__wCsAz {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 0px 20px !important;
        box-sizing: border-box !important;
    }

    .styles_link___lR7s.styles_link__lCdad {
        font-family: Manrope, sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 20px !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 8px 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .styles_list__dSWiO {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
}


/* Улучшения сенсорного взаимодействия */
@media (hover: none) and (pointer: coarse) {
    .rc__7k9yds {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .rc__76a9k1 {
        min-height: 40px !important;
        padding: 0px 20px !important;
        margin-bottom: 0 !important;
    }

    .rc__vp8bc {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .styles_button__lw6RX {
        width: 48px;
        height: 48px;
    }

    .styles_providerIcon__be8Hl {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        flex-shrink: 0 !important;
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Стили для ошибок полей */
.password-error,
.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d93025;
    font-size: 13px;
    font-weight: 400;
    margin-top: 8px;
    margin-left: 0;
}

.password-error .rc__fddvN,
.login-error .rc__fddvN {
    flex-shrink: 0;
}

.error-field {
    background-color: #fce8e6 !important;
}

.error-field:hover {
    background-color: #fce8e6 !important;
}

/* Мобильные стили для ошибок */
@media (max-width: 768px) {
    .password-error,
    .login-error {
        font-size: 13px;
        margin-top: 6px;
        gap: 6px;
    }
}


:root {
    --rc-typography-fontFamily: Manrope, sans-serif;
    --rc-typography-text-fontSize: 15px;
    --rc-typography-text-fontWeight: 500;
    --rc-typography-text-lineHeight: 20px;
    --rc-typography-text-color: #343b4c;
    --rc-button-primary-color: #fff;
    --rc-button-primary-bgColor: #315efb;
    --rc-button-primary-hover-bgColor: #2c54e2;
    --rc-button-primary-active-bgColor: #274bc8;
    --rc-input-fill-base-bgColor: #eff5ff;
    --rc-input-fill-base-hover-bgColor: #e0ebff;
    --rc-input-color: #343b4c;
}

/* Десктопная версия - центрируем "Регистрация" */
@media (min-width: 769px) {
    .styles_footer__wCsAz {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .styles_link___lR7s.styles_link__lCdad {
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        margin-left: 245px !important; /* Компенсируем смещение вправо */
    }
}

* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
