body {
    font-family: 'Montserrat Alternates', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: none;
}

.background-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/accounts/family.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    z-index: -1;
}

.transparent-container {
    width: 525px;
    background: url('../../img/accounts/family.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.combined-container {
    display: flex;
    width: 1050px;
    height: auto;
    min-height: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-container {
    background-color: white;
    padding: 37px;
    width: 525px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
}

.tabs {
    display: flex;
    margin-bottom: 22px;
    border-bottom: none;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    border-bottom: none;
    flex: 1;
    text-align: center;
    font-size: 21px;
    position: relative;
    color: #939393;
    opacity: 0.35;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.tab.active {
    opacity: 1;
    color: #939393;
    text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #E3C884;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.09);
}

.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.tab-content-inner {
    display: flex;
    flex-direction: column;
    padding-top: 50px;
}

.input-group {
    position: relative;
    margin-bottom: 33px;
}

.input-group.avatar-foto {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.input-group.avatar-foto .avatar-img{
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.input-group.avatar-foto .avatar-img .profile-image{
    border-radius: 100%;
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.input-group.avatar-foto a{
  position: absolute;
  left: 50%; /* Центр по горизонтали */
  top: 50%;  /* Центр по вертикали (отсчёт начинается здесь) */
  transform: translate(calc(-50% + 65px), calc(-50% + 65px));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.input-group.avatar-foto a:hover {
    opacity: 1;
}
.input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    width: 45px;
    text-align: center;
    font-size: 21px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.input-icon.tg-icon {
    left: 50px;
}

.input-field {
    width: 100%;
    padding: 13px 15px 13px 52px;
    border: none;
    border-bottom: none;
    font-size: 19px;
    box-sizing: border-box;
    background: transparent;
    color: #939393;
    opacity: 0.35;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    outline: none !important;
    box-shadow: none !important;
}

.input-field.modal{
    text-align: center;
    padding: 0px;
}

.input-field:focus {
    opacity: 1;
    color: #333;
    text-shadow: none;
    outline: none !important;
    box-shadow: none !important;
}

.input-field::placeholder {
    color: #939393;
    opacity: 0.35;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 52px;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.09);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.input-line.modal {
    position: absolute;
    bottom: 120px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.09);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 20;
}

.input-line.modal.email-reset {
    bottom: 90px;
}

.input-group:focus-within .input-line {
    background: #E3C884;
    box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.15);
}

.input-field.modal:focus-within .input-line.modal {
    background: #E3C884;
    box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.15);
}

.input-group .approved-container {
    position: absolute;
    right: 15px;
    bottom: 0px;
    cursor: pointer;
    color: #FC3F1D;
    text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.29);
}

.input-group .approved-container .approved{
    cursor: none;
    color: #609070;
}


h1 {
    color: #939393;;
    text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
    margin: 15px 0;
    font-size: 20px;
    text-align: center;
}

/* Обновленные стили кнопок */
.register-btn, .auth-combined-btn {
    background: #FFFFFF;
    backdrop-filter: blur(6.95px);
    border-radius: 35px 35px 35px 35px;
    color: #939393;
    text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
    border: none;
    padding: 12px; /* Уменьшенный padding */
    width: 100%;
    cursor: pointer;
    font-size: 19px; /* Уменьшенный размер шрифта */
    margin-top: 18px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Важное добавление */
}

.auth-combined-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-combined-btn.profile-btn {
    margin: 10%;
    width: 90%;
}

.main-button .save-button {
    border: none;
    background: none;
    font-size: 19px;
    color: #E3C884;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.auth-combined-btn.profile-btn submit {
    border: none;
}
.auth-combined-btn:hover {
    background: #f9f9f9;
}

.auth-combined-btn .icons {
    display: flex;
    gap: 12px;
    margin-right: 12px;
}

.auth-combined-btn .icon {
    width: 30px; /* Уменьшенный размер */
    height: 30px; /* Уменьшенный размер */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Уменьшенный размер */
    font-weight: bold;
}

.auth-combined-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.login-form {
    display: none;
    flex: 1;
    flex-direction: column;
}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
}

.text-link-imp {
    color: #FC3F1D;
    text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.29);
}

.login-link {
    color: #939393;
    text-decoration: none;
    text-align: center;
    font-size: 19px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
    text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.29);
}

.auth-icon.disabled {
    cursor: none;
    pointer-events: none;
}


.auth-icon.disabled a{
    cursor: none;
    pointer-events: none;
    transition: transform 0.3s ease; /* (Опционально, если будет добавлен .active) */
}

.auth-icon.active a{
    transition: transform 0.3s ease;
    cursor: pointer;
}

.auth-icon.active a:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.agreement-container {
    margin: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agreement-text {
    color: #999;
    font-size: 18px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
}

.agreement-container.active .agreement-text {
    color: #333;
}

.agreement-link {
    color: #4CAF50;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
}

/* Обновленные стили для переключателя */
.switch {
    position: relative;
    display: inline-block;
    width: 60px; /* Уменьшенная ширина */
    height: 30px; /* Уменьшенная высота */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px; /* Уменьшенный радиус */
    overflow: hidden; /* Важно для обрезки теней */
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px; /* Увеличенная высота */
    width: 22px; /* Увеличенная ширина */
    left: 4px; /* Скорректированная позиция */
    top: 4px; /* Центрирование по вертикали */
    background: linear-gradient(180deg, #FFFFFF 0%, #C2C2C2 100%);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 1.46958e-16px 1px 1.7px rgba(51, 51, 51, 0.3765),
                inset -5.84565e-17px -0.954667px 0.954667px #B3B3B3,
                inset 5.84565e-17px 0.954667px 0.954667px #FFFFFF;
}

input:checked + .slider {
    background-color: #E3C884;
}

input:checked + .slider:before {
    left: calc(100% - 26px); /* 100% - (ширина бегунка + отступ справа) */
    transform: none; /* Убираем предыдущее преобразование */
}

.auth-combined-login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    gap: 12px;
}

.auth-text {
    color: #777;
    font-size: 19px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
}

.auth-icons {
    display: flex;
    gap: 12px;
}

.auth-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    line-height: 100%;
}

.auth-icon.active {
    opacity: 1;
    cursor: pointer;
}

.auth-icon.google {
    color: white;
}

.auth-icon.yandex {
    color: white;
}

.iti  {
    width: 50%;
    margin-left: 40px;
}

.iti__search-input {
    font-size: 19px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    color: #FC3F1D;
    text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.29);
}

.error {
    font-size: 14px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 400;
    color: #FC3F1D;
    text-shadow: 0px 2px 2.4px rgba(0, 0, 0, 0.29);
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 397px;
    height: 188px;
    background: #FFFFFF;
    box-shadow: 0px 4px 12.4px rgba(0, 0, 0, 0.09);
    border-radius: 15px;
    z-index: 100;
    @media (max-width: 640px) {
        width: 80%;
    }
}

.popup {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    border-radius: 20px;
    width: 100%;
    padding: 28px;
    background: #FFFFFF;
    box-shadow: 0px 4px 12.4px rgba(0, 0, 0, 0.09);
}

.popup-text {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    /* identical to box height */
    color: #939393;
    @media (max-width: 640px) {
        font-size: 14px;
    }
}

.popup .main-button {
    margin-top: 8px;
    margin-bottom: 19px;
    width: 122px;
    height: 28px;
    background: linear-gradient(180deg, #DFC070 0%, #D5B460 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
}

.circle {
    cursor: pointer;
    box-sizing: border-box;
    position: absolute;
    bottom: -25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #DFC070 0%, #D5B460 100%);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    transition: background 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    border: none;
}

.circle:hover {
    background: linear-gradient(180deg, #E8CA7A 0%, #DBB863 100%);
    border: 1px solid rgba(90, 90, 90, 1);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3), inset 0px 5px 11.7px rgba(255, 255, 255, 0.35);
}

.circle:active {
    background: linear-gradient(180deg, #D5B460 0%, #CBA850 100%);
    border: 1px solid rgba(70, 70, 70, 1);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), inset 0px 3px 8px rgba(0, 0, 0, 0.15);
}

.additional-text {
    font-family: 'Montserrat Alternates';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #DD6853;
    text-align: center;
    margin: 8px 0px 4px;
    padding: 0px 39px;
    @media (max-width: 640px) {
        font-size: 12px;
    }
}

.additional-text span {
    color: rgba(121, 121, 121, 1);
}

.popup-header {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 21.94px;
    text-align: center;
    color: rgba(23, 56, 63, 1);
    margin-bottom: 16px;
    @media (max-width: 640px) {
        font-size: 16px;
    }
}

.cross-icon {
    width: 40px;
    height: 40px;
    background-image: url('../../img/accounts/crossline.svg');
}

.left-arrow-icon {
    width: 45px;
    height: 45px;
    background-image: url('../../img/accounts/left-arrow.svg');
}

.refresh-icon {
    width: 45px;
    height: 45px;
    background-image: url('../../img/accounts/refresh.svg')
}

.tick-icon {
    width: 45px;
    height: 45px;
    background-image: url('../../img/accounts/accepted.svg');
}

#avatar-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

@media only screen and (max-width: 480px) {
/* Адаптировать основной контент */
    .container-wrapper {
        padding-top: 253.12px;
        padding: 0;
        align-items: stretch;
    }

    .combined-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border: none;
        box-shadow: none;
        border-radius: 0;
        flex: 1;
        margin: 0;
    }

    .form-container {
        border-right: none;
        width: 100%;
        flex-grow: 1;
        padding: 20px;
    }

    .transparent-container {
        display: none;
    }

    .agreement-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .switch {
        margin-top: 12px;
    }

    .tab {
        padding: 12px 15px;
        font-size: 18px;
    }

    h1 {
        font-size: 24px;
    }

    .input-group.avatar-foto .avatar-img {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 900px) and (min-width: 480px) {
    /* Сохраняем десктопный header без изменений */
    .container-wrapper {
        padding: 0;
        align-items: stretch;
    }

    .combined-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border: none;
        box-shadow: none;
        border-radius: 0;
        flex: 1;
        margin: 0;
    }

    .form-container {
        border-right: none;
        border-bottom: 1px solid #ddd;
        width: 100%;
        flex-grow: 1;
        padding: 20px;
    }

    .transparent-container {
        display: none;
    }
    .switch {
        margin-top: 12px;
    }
}


@media (max-width: 600px) and (min-width: 480px) {
    .combined-container {
        width: 100%;
    }

    .tab {
        padding: 12px 15px;
        font-size: 18px;
    }

    h1 {
        font-size: 24px;
    }
    .agreement-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


