html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Убираем прокрутку */
}

body {
    font-family: Arial, sans-serif;
    background-color: #bfd3dc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Разделим элементы на противоположные стороны */
    padding: 10px 20px;
    background-color: #e0e0e0;
    position: relative;
    top: 40px; /* Смещаем надпись ниже */
}

.language {
    display: flex;
    align-items: center;
    background-color: #b5ccd25c;
    height: 33px;
    width: 96px;
    border-radius: 20px;
    margin-right: 23px;
}

.language .flag {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    margin-left: 9px;
}

.text {
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.qr-code {
    display: flex;
    align-items: center;
}

.qr-img {
    width: 30px;
    height: 30px;
    margin-left: 28px;
}

.logo {
    margin-top: 125px; /* Опускаем логотип ниже */
    z-index: 1;
    position: relative;
}

.logo-img {
    width: 60px;
    height: 60px;
}

.container {
    width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
}

.login-form {
    padding: 20px;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #80808003;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #80808017;
    height: 44px;
    font-size: 14px;
}

.show-password {
    cursor: pointer;
    background: none;
    border: none;
    width: 20px; /* Ширина для изображения */
    height: 16px; /* Высота для изображения */
    background-image: url('../img/pass.png'); /* Путь к изображению глаза */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.recovery-link {
    text-align: right;
    margin-bottom: 15px;
}

.recovery-link a {
    color: #ff6600;
    text-decoration: none;
    font-size: 12px;
}

.input-group input::placeholder {
    color: #000000; /* Цвет плейсхолдера */
    opacity: 1; /* Убираем прозрачность по умолчанию */
}

.recovery-link a:hover {
    text-decoration: underline;
}

.save-user {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.save-user input {
    display: none; /* Скрываем стандартный чекбокс */
}

.save-user label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
}

.save-user label:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 46%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ff6600;
}

.save-user input:checked + label:before {
    background-color: #ff6600;
}

.save-user input:checked + label:after {
    content: "";
    position: absolute;
    left: 12px;
    top: 43%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.next-btn {
    width: 100%;
    padding: 10px;
    background-color: #ff6600;
    border: none;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    height: 46px;
}

.next-btn:hover {
    background-color: #e65500;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.register-link a {
    color: #ff6600;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    padding: 10px 20px; /* Подстраиваем размеры */
    border-radius: 20px; /* Закругляем углы */
    background-color: #ffe6d56e; /* Устанавливаем цвет фона */
    width: 100%; /* Делаем ширину 100% */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

.register-link a:hover {
    text-decoration: underline;
    background-color: #ffd6b5; /* Меняем цвет фона при наведении */
}

.full-width {
    width: 100%;
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

.footer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #f7f7f700;
    border-top: 1px solid #cccccca8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-btn img {
    width: 60px;
    height: 30px;
}

/* Медиазапросы для улучшенной адаптивности */
@media (min-width: 576px) {
    .container {
        width: 90%;
    }
}

@media (min-width: 950px) and (max-width: 1030px) {
    .qr-img {
        width: 50px;
        height: 50px;
    }
    .language {
        height: 45px;
        width: 147px;
        margin-right: 64px;
        margin-top: 9px;
    }
    .text {
        font-size: 20px;
    }
    .language .flag {
        width: 29px;
        height: 29px;
    }
    .logo {
        margin-top: 204px;
    }
    .logo-img {
        width: 100px;
        height: 100px;
    }
    .container {
        width: 100%;
        height: 813px;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }
    .input-group label {
        margin-bottom: 34px;
        font-size: 25px;
    }
    .input-group input {
        height: 82px;
        border-radius: 13px;
        font-size: 20px;
    }
    .input-group {
        margin-bottom: 32px;
    }
    .show-password {
        width: 30px;
        height: 16px;
    }
    .input-group input::placeholder {
        font-size: 25px;
    }
    .recovery-link {
        margin-bottom: 52px;
    }
    .save-user {
        margin-bottom: 50px;
    }
    .recovery-link a {
        font-size: 25px;
    }
    .save-user label {
        font-size: 25px;
    }
    .save-user label:before {
        left: -4px;
        width: 27px;
        height: 26px;
    }
    .save-user input:checked + label:after {
        left: 5px;
        top: 39%;
        width: 10px;
        height: 15px;
    }
    .next-btn {
        height: 83px;
        font-size: 31px;
        border-radius: 31px;
        margin-bottom: 34px;
    }
    .register-link span {
        font-size: 23px;
        margin-bottom: 42px;
    }
    .register-link a {
        font-size: 24px;
    }
}

@media (min-width: 900px) and (max-width: 950px) {
    .qr-img {
        width: 50px;
        height: 50px;
    }
    .language {
        height: 45px;
        width: 147px;
        margin-right: 64px;
        margin-top: 9px;
    }
    .text {
        font-size: 20px;
    }
    .language .flag {
        width: 29px;
        height: 29px;
    }
    .logo {
        margin-top: 204px;
    }
    .logo-img {
        width: 100px;
        height: 100px;
    }
    .container {
        width: 100%;
        height: 813px;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }
    .input-group label {
        margin-bottom: 34px;
        font-size: 25px;
    }
    .input-group input {
        height: 82px;
        border-radius: 13px;
        font-size: 20px;
    }
    .input-group {
        margin-bottom: 32px;
    }
    .show-password {
        width: 68px;
        height: 16px;
    }
    .input-group input::placeholder {
        font-size: 25px;
    }
    .recovery-link {
        margin-bottom: 52px;
    }
    .save-user {
        margin-bottom: 50px;
    }
    .recovery-link a {
        font-size: 25px;
    }
    .save-user label {
        font-size: 25px;
    }
    .save-user label:before {
        left: -4px;
        width: 27px;
        height: 26px;
    }
    .save-user input:checked + label:after {
        left: 5px;
        top: 39%;
        width: 10px;
        height: 15px;
    }
    .next-btn {
        height: 83px;
        font-size: 31px;
        border-radius: 31px;
        margin-bottom: 34px;
    }
    .register-link span {
        font-size: 23px;
        margin-bottom: 42px;
    }
    .register-link a {
        font-size: 24px;
    }
}

@media (min-width: 850px) and (max-width: 900px) {
    .logo {
        margin-top: 163px;
    }
    .logo-img {
        width: 80px;
        height: 80px;
    }
    .container {
        width: 100%;
        height: 728px;
    }
    .input-group label {
        margin-bottom: 28px;
        font-size: 19px;
    }
    .input-group input {
        height: 60px;
        border-radius: 13px;
        font-size: 20px;
    }
    .input-group {
        margin-bottom: 32px;
    }
    .show-password {
        width: 44px;
        height: 15px;
    }
    .input-group input::placeholder {
        font-size: 20px;
    }
    .recovery-link {
        margin-bottom: 52px;
    }
    .save-user {
        margin-bottom: 34px;
    }
    .recovery-link a {
        font-size: 17px;
    }
    .save-user label {
        font-size: 20px;
    }
    .next-btn {
        height: 68px;
        font-size: 23px;
        border-radius: 24px;
        margin-bottom: 34px;
    }
    .register-link span {
        font-size: 16px;
        margin-bottom: 50px;
    }
    .register-link a {
        font-size: 17px;
    }
}

@media (min-width: 800px) and (max-width: 850px) {
    .logo {
        margin-top: 163px;
    }
    .logo-img {
        width: 80px;
        height: 80px;
    }
    .container {
        width: 100%;
        height: 728px;
    }
    .input-group label {
        margin-bottom: 28px;
        font-size: 19px;
    }
    .input-group input {
        height: 60px;
        border-radius: 13px;
        font-size: 20px;
    }
    .input-group {
        margin-bottom: 32px;
    }
    .show-password {
        width: 44px;
        height: 16px;
    }
    .input-group input::placeholder {
        font-size: 20px;
    }
    .recovery-link {
        margin-bottom: 52px;
    }
    .save-user {
        margin-bottom: 34px;
    }
    .recovery-link a {
        font-size: 17px;
    }
    .save-user label {
        font-size: 20px;
    }
    .next-btn {
        height: 68px;
        font-size: 23px;
        border-radius: 24px;
        margin-bottom: 34px;
    }
    .register-link span {
        font-size: 16px;
        margin-bottom: 50px;
    }
    .register-link a {
        font-size: 17px;
    }
}

@media (min-width: 768px) and (max-width: 800px) {
    .container {
        width: 100%;
        height: 632px;
    }
    .input-group label {
        margin-bottom: 28px;
        font-size: 19px;
    }
    .input-group input {
        height: 60px;
        border-radius: 13px;
        font-size: 20px;
    }
    .input-group {
        margin-bottom: 32px;
    }
    .show-password {
        width: 44px;
        height: 16px;
    }
    .input-group input::placeholder {
        font-size: 20px;
    }
    .recovery-link {
        margin-bottom: 35px;
    }
    .recovery-link a {
        font-size: 17px;
    }
    .save-user label {
        font-size: 20px;
    }
    .next-btn {
        height: 68px;
        font-size: 23px;
        border-radius: 24px;
        margin-bottom: 20px;
    }
    .register-link span {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .register-link a {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 60%;
    }
}

@media (min-height: 900px) and (max-height: 950px) {
    .container {
        height: 539px;
    }
    .input-group label {
        margin-bottom: 23px;
    }
    .input-group input {
        height: 46px;
    }
    .show-password {
        right: 15px;
        top: 24px;
        height: 16px;
    }
    .recovery-link {
        margin-bottom: 36px;
    }
    .save-user label {
        margin-bottom: 17px;
    }
    .next-btn {
        margin-bottom: 21px;
    }
    .register-link {
        margin-top: 20px;
    }
    .register-link span {
        margin-bottom: 21px;
    }
}

@media (min-height: 850px) and (max-height: 900px) {
    .container {
        height: 539px;
    }
    .input-group label {
        margin-bottom: 23px;
    }
    .input-group input {
        height: 46px;
    }
    .show-password {
        right: 15px;
        top: 24px;
        height: 16px;
    }
    .recovery-link {
        margin-bottom: 36px;
    }
    .save-user label {
        margin-bottom: 17px;
    }
    .next-btn {
        margin-bottom: 21px;
    }
    .register-link {
        margin-top: 20px;
    }
    .register-link span {
        margin-bottom: 21px;
    }
}

@media (min-height: 800px) and (max-height: 850px) {
    .container {
        height: 503px;
    }
    .input-group input {
        height: 46px;
    }
    .show-password {
        right: 15px;
        top: 23px;
        height: 16px;
    }
    .recovery-link {
        margin-bottom: 36px;
    }
    .save-user label {
        margin-bottom: 17px;
    }
    .next-btn {
        margin-bottom: 21px;
    }
    .register-link {
        margin-top: 20px;
    }
    .register-link span {
        margin-bottom: 21px;
    }
}

@media (min-height: 750px) and (max-height: 800px) {
    .container {
        height: 449px;
    }
}

@media (min-height: 633px) and (max-height: 700px) {
    .logo {
        margin-top: 68px;
    }
}

@media (min-height: 600px) and (max-height: 633px) {
    .logo {
        margin-top: 53px;
    }
    .login-form {
        height: 299px;
    }
    .logo-img {
        width: 55px;
        height: 55px;
    }
    .footer {
        padding: 3px;
    }
}

@media (min-height: 633px) and (max-height: 667px) {
    .logo {
        margin-top: 53px;
    }
}

@media (min-height: 550px) and (max-height: 600px) {
    .footer {
        padding: 0px;
    }
    .register-link a {
        font-size: 10px;
        padding: 6px 20px;
    }
    .register-link span {
        font-size: 10px;
    }
    .next-btn {
        font-size: 15px;
        height: 38px;
    }
    .save-user label {
        font-size: 12px;
    }
    .input-group input {
        font-size: 10px;
    }
    .input-group label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .login-form {
        height: 270px;
    }
    .logo {
        margin-top: 59px;
    }
    .logo-img {
        width: 53px;
        height: 53px;
    }
    .qr-img {
        width: 25px;
        height: 25px;
    }
    .language {
        height: 26px;
        width: 89px;
    }
}

@media (min-height: 500px) and (max-height: 550px) {
    .footer {
        padding: 0px;
    }
    .register-link a {
        font-size: 10px;
        padding: 6px 20px;
    }
    .register-link span {
        font-size: 10px;
    }
    .next-btn {
        font-size: 15px;
        height: 38px;
    }
    .save-user label {
        font-size: 12px;
    }
    .input-group input {
        font-size: 10px;
    }
    .input-group label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .login-form {
        height: 270px;
    }
    .logo {
        margin-top: 45px;
    }
    .logo-img {
        width: 48px;
        height: 48px;
    }
    .qr-img {
        width: 25px;
        height: 25px;
        margin-top: -26px;
    }
    .language {
        height: 26px;
        width: 89px;
        margin-top: -26px;
    }
}

@media (min-height: 470px) and (max-height: 500px) {
    .footer {
        padding: 0px;
    }
    .register-link a {
        font-size: 10px;
        padding: 6px 20px;
    }
    .register-link span {
        font-size: 10px;
    }
    .next-btn {
        font-size: 15px;
        height: 38px;
    }
    .save-user label {
        font-size: 12px;
    }
    .input-group input {
        font-size: 10px;
    }
    .input-group label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .login-form {
        height: 270px;
    }
    .logo {
        margin-top: 45px;
    }
    .logo-img {
        width: 48px;
        height: 48px;
    }
    .qr-img {
        width: 25px;
        height: 25px;
        margin-top: -26px;
    }
    .language {
        height: 26px;
        width: 89px;
        margin-top: -26px;
    }
}

@media (min-width: 1200px) and (max-width: 1281px) {
    .container {
        height: 509px;
        width: 100%;
    }
}

.large-screen-only {
    display: none;
}

@media (min-width: 1281px) and (max-width: 3000px) {
    .background {
        width: 100%;
        height: 100%;
        background-image: url('../img/fone.png'); /* Укажите путь к вашему изображению */
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .container {
        width: 30%;
        max-width: 617px; /* Максимальная ширина контейнера */
        height: auto;
        min-height: 500px; /* Устанавливаем минимальную высоту */
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        background-color: white;
        padding: 40px; /* Добавляем отступы */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin: 0; /* Убираем автоматическое центрирование */
        position: fixed; /* Фиксированное позиционирование */
        left: 100px; /* Фиксируем отступ слева */
        top: 500px; /* Фиксируем отступ сверху */
        transform: translateY(-50%); /* Центрирование по вертикали */
        transition: width 0.3s ease; /* Плавное изменение ширины */
    }

    .header, .logo, .footer {
        display: none; /* Скрываем эти элементы */
    }

    .large-screen-only {
        display: flex; /* Показываем контейнер только для больших экранов */
    }

    .qr-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-right: 30px; /* Смещаем текст и QR-код немного вправо */
    }

    .qr-container .qr-code {
        display: flex;
        align-items: center;
    }

    .qr-container .qr-img {
        width: 80px;
        height: 107px;
        margin-bottom: -41px;
    }

    .qr-container .text-center {
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        flex-grow: 1;
        margin-left: 110px; /* Смещаем текст немного вправо */
    }

    .inner-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 20px; /* Опускаем содержимое формы */
    }

    .login-form {
        width: 100%; /* Ширина формы логина */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .input-group input {
        width: 100%; /* Полная ширина полей ввода */
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box; /* Учитываем padding и border в ширине */
    }

    .input-group label {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .input-group input {
        width: 100%; /* Полная ширина */
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
    }

    .show-password {
        position: absolute;
        right: 10px; /* Исправляем позиционирование */
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 16px;
        background-size: cover;
        cursor: pointer;
    }

    .recovery-link {
        width: 100%;
        text-align: right;
        margin-bottom: 20px;
    }

    .recovery-link a {
        color: #ff6600;
        font-size: 14px;
        text-decoration: none;
    }

    .save-user {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 20px;
    }

    .save-user input {
        margin-right: 10px;
    }

    .next-btn {
        max-width: 565px; /* Максимальная ширина кнопки */
        padding: 15px;
        background-color: #ff6600;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 18px;
        text-align: center;
        transition: background-color 0.3s ease, width 0.3s ease; /* Плавное изменение цвета фона и ширины */
    }
    
    .next-btn:hover {
        background-color: #e65500;
    }

    .register-link {
        width: 92%;
        text-align: center;
        margin-top: 20px;
    }

    .register-link a {
        color: #ff6600;
        font-size: 14px;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 5px;
        background-color: #ffe6d5;
        display: inline-block;
    }

    .register-link a:hover {
        background-color: #ffd6b5;
    }
}

/*LOADING SWAL */
.loadLoad{
    animation: 3s linear infinite rotate;
    width: 100px;
}
@keyframes rotate {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
  }

.swal-modal{
    background-color: transparent !important;
}

/* ==========================================
   LANGUAGE BUTTON
   ========================================== */

.button-link {
    text-decoration: none !important;
    color: inherit;
}

.button-link:hover,
.button-link:focus,
.button-link:active,
.button-link:visited {
    text-decoration: none !important;
    color: inherit;
}


/* ==========================================
   DESKTOP LANGUAGE BUTTON
   ========================================== */

/* По умолчанию кнопка PC скрыта */
.language-desktop {
    display: none;
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    background-color: #ff6600;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ==========================================
   SUBMIT LOADING OVERLAY
   ========================================== */

.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.submit-overlay.active {
    display: flex;
}

.submit-loader {
    width: 52px;
    height: 52px;

    border: 5px solid rgba(128, 128, 128, 0.25);
    border-top-color: #ff6600;

    border-radius: 50%;

    animation: submitLoaderSpin 0.8s linear infinite;
}

@keyframes submitLoaderSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}