.hero-form {
    position: relative;
    z-index: 110;
    width: 340px;
    height: 510px;
    padding: 20px;
    background-image: url('../reg2/bg.webp');
    background-repeat: no-repeat; /* Отключение повторения изображения */
    background-size: cover; /* Растягивает изображение, чтобы оно заполнило весь блок */
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 200px;
    overflow: hidden;
    justify-content: space-between;
    box-shadow: none;
}

.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;
    width: 312px;
    margin: 25px auto 15px;
}

.input-field-hero {
    background-color: #32211C;
    box-shadow: inset 0px -2px 12px rgba(0, 0, 0, 0.4), inset 0px 2px 4px rgba(0, 0, 0, 0.4);
    border: 0px solid #444E65;
    border-radius: 8px;
    padding: 12px 70px 12px 12px;
    font-size: 16px;
    height: 48px;
    color: #F5F5F5;
    width: 100%;
    box-sizing: border-box;
}

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

.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;
    width: 312px;
    margin: 15px auto 20px;
}

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

.icon-hero {
    cursor: pointer;
}

.sign-up-button-hero {
    background-image: url('../reg2/rbtn.webp');
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Sofia Sans Condensed', sans-serif;
    border: none;
    border-radius: 8px;
    height: 52px;
    width: 312px;
    cursor: pointer;
    text-align: center;
    color: #3C2110;
    font-size: 16px;
    font-weight: 800;
    line-height: 48px;
    margin-top: 20px;
    margin-left: 15px;
    text-transform: uppercase;
    padding: 0;
}

.sign-up-button-hero:hover {
    background-image: url('../reg2/rbtnh.webp'); /* Изображение при наведении */
}

.sign-up-button-hero:active {
    background-image: url('../reg2/rbtnp.webp'); /* Изображение при нажатии */
}



.terms-text-hero {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #f3f3f3;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.rules-link-hero {
    color: #d57116;
    text-decoration: none;
}

/* Список требований к паролю */
.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;
    margin-left: 16px;
}

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

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

/* Промокод */
.promo-code-section-hero {
    font-size: 14px;
    color: #79849B;
    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;
    margin-left: 16px;
}

.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: #32211c;
    background-image: url('../reg2/gal.png');
    background-repeat: no-repeat;
    background-position: center;
}

#hero-promo-code-input {
    display: none;
    margin: 12px auto 0;
    width: 312px;
}

.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;
}

@media (max-width: 1440px) {
    .hero-form {
        margin-top: 120px;
    }
}

@media (max-width: 1024px)  {
    .hero-form {
        margin-top: 140px;
    }
}

@media (max-width: 768px)  {
    .hero-form {
        position: relative;
        z-index: 110;
        width: 288px;
        height: 428px;
        padding: 20px;
        background-image: url('../reg2/bg2.webp');
        background-repeat: no-repeat;
        background-size: contain;
        border-radius: 30px;
        display: flex
;
        flex-direction: column;
        gap: 15px;
        margin-top: 458px;
        overflow: hidden;
        justify-content: space-between;
        box-shadow: none;
    }

    .sign-up-button-hero {
        background-image: url('../reg2/mbtn.webp');
        background-size: cover;
        background-repeat: no-repeat;
        font-family: 'Sofia Sans Condensed', sans-serif;
        border: none;
        border-radius: 8px;
        height: 52px;
        width: 264px;
        cursor: pointer;
        text-align: center;
        color: #3C2110;
        font-size: 16px;
        font-weight: 800;
        line-height: 48px;
        margin-top: 20px;
        margin-left: 15px;
        text-transform: uppercase;
        padding: 0;
    }
    
    .sign-up-button-hero:hover {
        background-image: url('../reg2/mbtnh.webp'); /* Изображение при наведении */
    }
    
    .sign-up-button-hero:active {
        background-image: url('../reg2/mbtnp.webp'); /* Изображение при нажатии */
    }
    .input-containers-hero {
        position: relative;
        width: 264px;
        margin: 10px auto 10px;
    }
    #hero-promo-code-input {
        display: none;
        margin: 12px auto 0;
        width: 264px;
    }

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