body {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #F1F0F0;
    background-image: url(../im/bg2.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.head{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
}
.img-head{
    align-content: center;
}
.title-head{
    align-content: center;
}
.code{
    display: flex;
    width: 100%;
    justify-content: space-between;
}
/* Контейнер для reCAPTCHA */
.g-recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

/* Форма входа */
.form-signin {
    max-width: 460px;
    padding: 10px;
    margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: 10px;
    margin-top: -10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-signin select {
    margin-top: -10px;
    margin-bottom: 10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Контейнер для пароля с иконкой просмотра */
.password-container {
    position: relative;
    margin-bottom: 10px;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    margin-top: -10px;
    padding-right: 40px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    background: white;
    padding: 0 5px;
}

.eye-icon {
    font-size: 16px;
}

/* Стили для чекбокса */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.checkbox-label {
    margin-left: 8px;
    color: gray;
    font-size: 14px;
    margin-top: 8px;
}

/* Кнопки */
.button-group {
    margin-top: 15px;
}

.submit-btn {
    height: 55px;
    margin-bottom: 10px;
}

/* Верхняя панель с языком и ссылкой */
.chLangLeft {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    z-index: 9999;
    position: fixed;
    top:0;
    left:0;
    padding-top: 2px;
    width:100%;
}

.chLangRight{
    float: right;
    display: block;
}

/* Ссылка "помощь" */
.help-link {
    margin-left: 20px;
}

/* Контейнер для изображения */
.image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.image-wrapper {
    max-width: 100%;
}

.sample-image {
    max-width: 100%;
    height: auto;
}

/* Логотип */
.logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

/* Текст с уведомлением */
.disclaimer {
  
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    text-align: center;
    max-width: 90%;
}

.error-message {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
}

/* Адаптивные стили */


@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .head{

        flex-direction: column;

    }
    .form-signin {
        max-width: 100%;
    }

    .logo-img {
        height: 40px;
    }
    .image-wrapper {
        max-width: 90%;
        margin: 0 auto;
    }

    .help-link {
        margin-left: 10px;
        display: block;
        margin-top: 5px;
    }

    .chLangLeft {
        font-size: 14px;
        padding: 5px;
    }


    .g-recaptcha {
        transform: scale(0.85);
    }
}


@media screen and (max-width: 576px) {
    body {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .panel-heading {
        padding: 10px;
    }

    .panel-heading strong {
        font-size: 16px;
    }

    .submit-btn {
        height: 50px;
        font-size: 14px;
    }

    .g-recaptcha {
        transform: scale(0.75);
    }

    .disclaimer {
        font-size: 14px;
        max-width: 96%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 400px) {
    .rc-anchor-normal {
        height: 74px;
        width: 200px;
    }

    form {
        font-size: 80%;
    }

    .chLangLeft {
        font-size: 12px;
    }

    .toggle-password {
        right: 5px;
    }
}