
/* Основная форма (оранжевая) */
.hero-form {
    width: 412px;
    height: 510px;
    padding: 24px;
    border-radius: 12px;
    background-color: #161514;
    position: relative; /* Нужно для позиционирования псевдоэлемента */
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
}

/* Псевдоэлемент для подложки */
.hero-form::before {
    content: "";
    position: absolute;
    top: -10px; /* Смещение подложки, если нужно */
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('../img/fbg.webp');
    z-index: -1; /* Размещаем под формой */
    border-radius: 12px;
}

.hero-registrationForm {
z-index: 10;
}

.form-header-hero {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 21.09px;
    color: #FFFFFF;
    text-align: center;
}

.close-button-hero {
    position: absolute;
    top: 17px;
    right: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-button-hero img {
    width: 24px;
    height: 24px;
    display: block;
}

.input-containers-hero {
    position: relative;
    margin-bottom: 16px;
}

.input-field-hero {
    background-color: #ffffff;
    border: 0px solid #444E65;
    padding: 12px 70px 12px 12px;
    font-size: 16px;
    border-radius: 8px;
    height: 48px;
    color: #020C22;
    width: 100%;
    box-sizing: border-box;
}

.input-field-hero::placeholder {
    color: #79849B;
}

.valid-icon-hero {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.password-field-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.password-icons-hero {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 10px;
    align-items: center;
}

.icon-hero {
    cursor: pointer;
}

.sign-up-button-hero {
    background-color: #D2FE0B;
    color: #161514;
    border: none;
    padding: 12px;
    font-size: 24px;
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    height: 60px;
    margin-top: 20px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Контейнеры для стрелок */
.arrows-left, .arrows-right {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0px;
}

/* Левые стрелки */
.arrows-left {
    left: 65px;
}

/* Правые стрелки */
.arrows-right {
    right: 70px;
    flex-direction: row-reverse; /* Меняем порядок стрелок, чтобы выглядело правильно */
}

/* Стили для стрелок */
.arrow {
    width: 15px; 
    height: 24px;
    opacity: 0; 
    position: relative;
}

/* Анимация для левых стрелок (движение вправо) */
.arrows-left .arrow:nth-child(1) {
    animation: move-left 1.2s infinite ease-in-out;
}

.arrows-left .arrow:nth-child(2) {
    animation: move-left 1.2s 0.2s infinite ease-in-out;
}

.arrows-left .arrow:nth-child(3) {
    animation: move-left 1.2s 0.4s infinite ease-in-out;
}

/* Анимация для правых стрелок (движение влево) */
.arrows-right .arrow:nth-child(1) {
    animation: move-right 1.2s infinite ease-in-out;
}

.arrows-right .arrow:nth-child(2) {
    animation: move-right 1.2s 0.2s infinite ease-in-out;
}

.arrows-right .arrow:nth-child(3) {
    animation: move-right 1.2s 0.4s infinite ease-in-out;
}

/* Анимация движения левых стрелок внутрь (вправо) */
@keyframes move-left {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(10px);
        opacity: 0;
    }
}

/* Исправленная анимация для правых стрелок (движение влево) */
@keyframes move-right {
    0% {
        transform: translateX(10px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 0;
    }
}


.sign-up-button-hero:enabled {
    cursor: pointer;
    color: #161514;
}


.terms-text-hero {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #fff;
    text-align: center;
    margin-top: 20px;
    transition: margin-top 0.5s ease-in-out; /* Плавное изменение отступа */
}


.rules-link-hero {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

/* Список требований к паролю */
.password-checklist-hero {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.check-item-hero {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-hero {
    width: 16px;
    height: 16px;
}

/* Промокод */
.promo-code-section-hero {
    font-size: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.checkbox-container-hero {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    color: #ffffff;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding-top: 2px;
}

.checkbox-container-hero input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox-hero {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1.5px solid #ffffff;
    border-radius: 4px;
    background-color: transparent;
}

.checkbox-container-hero input:checked ~ .custom-checkbox-hero {
    background-color: #D2FE0B;
    border: 1.5px solid #020c22;
    background-image: url('../reg2/gal.png');
    background-repeat: no-repeat;
    background-position: center;
}

#hero-promo-code-input {
    display: none;
    margin-top: 12px;
    width: 100%;
}

.error-message-hero {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: #ffffff;
    margin-top: 10px;
    text-align: left;
}


.bonus-image-hero {
    width: 464px; /* Чтобы картинка адаптировалась к ширине формы */
    margin: 14px -52px; /* Отступ сверху 10px, центрируем */
    display: block;
    opacity: 1; /* Начальное состояние — видимая */
    transition: opacity 0.2s ease-in-out; /* Плавная анимация */
}

@media (max-width: 1280px) {
    .hero-form {
        width: 340px;
        height: 510px;
        padding: 20px;
    }
    .arrows-left {
        left: 20px;
    }
    .arrows-right {
        right: 30px;
        flex-direction: row-reverse;
    }
    .hero-form::before {
        content: "";
        position: absolute;
        top: -10px; /* Смещение подложки, если нужно */
        left: -10px;
        right: -10px;
        bottom: -10px;
        background-image: url('../img/fbg2.webp');
        z-index: -1; /* Размещаем под формой */
        background-size: cover;
        border-radius: 12px;
    }

}

@media (max-width: 1024px) {
   .terms-text-hero {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #fff;
    text-align: center;
    margin-top: 5px;
    transition: margin-top 0.5s ease-in-out;
   }
    .hero-form {
        width: 300px;
        height: 482px;
        padding: 15px;
    }

    .hero-form::before {
        content: "";
        position: absolute;
        top: -10px; /* Смещение подложки, если нужно */
        left: -10px;
        right: -10px;
        bottom: -10px;
        background-image: url('../img/fbg3.webp');
        z-index: -1; /* Размещаем под формой */
        background-size: cover;
        border-radius: 12px;
    }
    
}
@media (max-width: 768px) {
    .hero-form {
        width: 300px;
        height: auto;
        padding: 15px;
    }

}