body {
    background-color: var(--light);
}

.dark {
    border-radius: 30px 30px 0 0;
}

.title {
    background-image: linear-gradient(to top,
            var(--black-50),
            var(--black-50)),

        url('../images/header-join-now.jpg');
}

.wrapper {
    position: relative;
    overflow: hidden;
}

.deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.deco>div {
    position: absolute;
}

.up-right-leaf {
    width: 15%;
    top: -5%;
    right: -0.5%;
    transform: scaleX(-1) rotate(10deg);
}

.down-right-leaf {
    width: 15%;
    bottom: -9%;
    right: -1%;
    transform: scaleX(-1) rotate(10deg);
}

.left-flower {
    width: 25%;
    top: 25%;
    left: -7%;
    transform: rotate(-10deg);
}

.email-v {
    margin-bottom: 40px;
}

.bodytext {
    max-width: 40%;
    margin-bottom: 50px;
}

.wrapper-joinnow-email {
    padding-bottom: 50px;
}

.search-bar {
    flex: 1;
    /* expand to fill available space */
}

.search-bar input {
    width: 100%;
    /* input fills the full bar */
}

.email {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.wrapper-signup {
    position: relative;
    background-color: var(--tertiary);
    max-width: 100%;
    border-radius: 20px;
    padding: 65px 45px 35px 40px;
    margin-bottom: 50px;
    text-align: left;
    margin: auto;
}

.wrapper-input input {
    margin-bottom: 25px;
}

.signup {
    align-items: flex-start;
    margin-bottom: 12px;
    margin-left: 5px;
    margin-top: -35px;
}

.wrapper-signup h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.wrapper-signup p {
    color: var(--white);
    margin-bottom: 50px;
}

/* Parent row — puts two boxes side by side */
.password-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Make each password box equal width */
.password-box {
    position: relative;
    flex: 1;
    min-width: 350px;
}

/* Eye icon inside input */
.password-box .eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 35px;
    max-height: 35px;
    cursor: pointer;
    opacity: 0.75;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.password-box .eye-icon:hover {
    opacity: 1;
}

.password-box .eye-icon:active {
    transform: translateY(-50%) scale(0.9);
}

.terms-and-conditions {
    gap: 10px;
    margin-top: 10px;
    align-self: center;
}

.agree-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 30px 0
}


@media screen and (max-width: 768px) {
    .left-flower {
        max-width: 33.33%;
    }

    .down-right-leaf {
        max-width: 33.33%;
    }

    .up-right-leaf {
        max-width: 33.33%;
    }

    .password-box {
        min-width: unset;
        flex: unset;
        width: 100%;
    }

    .password-box .eye-icon {
        width: 25px;
        height: 25px;
    }

    .bodytext {
        max-width: 90%;
    }
}