.hero {
    height: 100vh;
    width: 100%;
    background: #000030;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Centering form box vertically and horizontally */
    padding: 0 20px; /* Add padding to prevent content from touching screen edges */
}

.form-box {
    width: 380px;
    height: auto; /* Adjust height dynamically */
    max-height: 780px;
    position: relative;
    background: #fff;
    padding: 30px 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Aligning form content vertically */
    
    margin-top: 20px; /* Add margin-top for space above the form */
    margin-bottom: 20px; /* Add margin-bottom for space below the form */
}


.button-box {
    width: 100%;
    margin: 35px auto;
    position: relative;
    color: #fff;
    border-radius: 30px;
    text-align: center;
}

.toggle-btn {
    padding: 10px 26px;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    z-index: 10;
    border-radius: 30px;
}

#btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 100%;
        background: #000020;
    border-radius: 30px;
    transition: 0.5s;
}

.website-logo {
    margin: 30px auto;
    text-align: center;
}

.website-logo img {
    width: 30px;
    margin: 0 12px;
    box-shadow: 0 1px 0 #7f7f7f3d;
    cursor: pointer;
    border-radius: 20px;
}

.input-group {
    width: 100%;
    transition: 0.5s;
    display: flex;
    flex-direction: column; /* Stack form fields vertically */
}

.input-field {
    width: 100%; /* Full width inside the form */
    padding: 12px 15px;
    margin: 5px 0;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    border-color: #6a0572;
    box-shadow: 0 0 5px rgba(106, 5, 114, 0.6);
}

.input-field:hover {
    border-color: #3d0351;
}

.submit-btn {
    width: 80%;
    padding: 10px 30px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    background: linear-gradient(90deg, #6a0572, #3d0351) !important;
    border: 0;
    outline: none;
    border-radius: 30px;
}

.check-box {
    margin: 20px 7px 25px 0;
    position: relative;
    top: 0;
}

#login, #register {
    display: block;
    margin: 0 auto;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .form-box {
        width: 90%; /* Make form-box width more flexible */
        padding: 20px;
    }

    .website-logo img {
        width: 25px; /* Resize logo for smaller screens */
    }

    .input-field {
        font-size: 14px; /* Adjust font size for small screens */
    }

    .submit-btn {
        width: 100%; /* Make submit button full width on small screens */
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto; /* Allow the height to adjust based on content */
        padding: 0 15px;
    }

    .form-box {
        width: 100%; /* Full width on very small screens */
        height: auto;
        padding: 20px;
    }

    .input-field {
        font-size: 14px; /* Further reduce font size */
        padding: 10px 12px; /* Make input fields more compact */
    }

    .submit-btn {
        width: 100%; /* Full width submit button */
        padding: 12px 20px; /* Increase padding for better touch targeting */
    }

    .button-box {
        width: 100%;
    }

    .toggle-btn {
        padding: 8px 20px; /* Adjust padding for smaller buttons */
    }
}
