body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

input {
    padding: 10px;
    width: 100%;
}

.content {
    justify-self: center;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin-top: 10vh;
    height: calc(100vh - 50px - 2rem - 10px);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    max-width: 600px;
    height: fit-content;
    width: 70%;
}

.form-container,
.carousel-container {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.button {
    cursor: pointer;
    padding: 10px 20px;
}

.title-container {
    align-self: center;
}

.main-layout {
    width: 100%;
}

.password-requirements {
    font-size: 12px;
}

.toggle-password {
    opacity: 0.6;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100%;
    width: 50%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    /* Changed from 400% to 100% */
}

.carousel-item {
    flex: 0 0 100%;
    /* Changed from 25% to 100% */
    transition: transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
    flex-direction: column;
    text-align: center;
    padding: 0 2.5%;
    /* Add some padding instead of margin */
    box-sizing: border-box;
    /* Ensure padding is included in width calculation */
}

.carousel-progress-bar {
    display: flex;
    justify-content: center;
    /* Center the progress bars */
    margin-top: 10px;
    width: 50%;
    margin-left: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    /* Full width on mobile */
}

.progress-item {
    flex-grow: 1;
    height: 4px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
    margin: 0 2px;
    /* Add small gap between bars */
}

.progress-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background-color: #33cccc;
    transition: width 0.05s linear;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-item-image {
    width: 300px;
    object-fit: cover;
}

.carousel-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

h1,
.carousel-item-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

h1 {
    margin-bottom: 10px;
}

select {
    padding-left: 10px;
}

.button-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-up-button {
    background-color: #33cccc;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s, width 0.3s;
}

button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.small-text {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #666;
    white-space: nowrap;
    flex-wrap: wrap;
}

.small-text a {
    text-decoration: underline;
    color: #33cccc;
}

@media (max-width: 1179px) {

    body {
        overflow: auto;
    }

    .content {
        flex-direction: column;
        margin-top: 2vh;
        gap: 5vh;
        height: unset;
        padding-bottom: 5vh;
        justify-content: unset;
    }

    .carousel-container,
    .form-container {
        width: 96%;
        height: fit-content;
    }

    .form {
        width: 100%;
        max-width: unset;
    }

    .carousel {
        width: 100%;
        /* Reset to 100% for mobile view */
    }

    .carousel-item {
        flex: 0 0 100%;
        /* Full width for each item in mobile view */
        padding: 0;
        /* Remove padding in mobile view if needed */
    }

    .carousel-progress-bar {
        margin-left: 0;
        width: 100%;
    }

    .carousel-item-image {
        width: 200px;
    }

    .small-text {
        font-size: 10px;
        white-space: normal;
    }
}