/* Original CSS rules */

body {
    margin: 0;
    padding: 0;
    font-family: 'Jua';
    color: white;
    font-size: 22px;
    background-image: url('../img/backgrounds/bg.jpg');
    background-color: black;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

p {
    margin:0;
}

.top-section {
    background-image: url('../img/backgrounds/banner.jpg');
    background-size: cover;
    height: 30%;
    width: 48%;
    margin: 0 auto;
}

.bottom-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60%;
}

.form {
    background-color: #1b1b1b;
    padding: 4%;
    border-radius: 20px;
    border: 5px solid #fff;
    box-shadow: 0 0 2% rgba(28, 28, 28, 0.1);
    width: 30%;
    max-width: 40%; /* Keeping a maximum width in percentage */
    height: 80%; /* Adjusted height to fit better */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form h2 {
    text-align: center;
    margin-bottom: 4%;
    margin-top: 0;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="submit"] {
    background-color: #1b1b1b;
    width: 100%;
    padding: 2%;
    border: 0.1% solid #ccc;
    color: white;
    border-radius: 1%;
    box-sizing: border-box;
    margin-bottom: 3%;
    font-family: 'Jua';
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-family: 'Jua';
    font-size: 20px;
    text-align: center;
    border: 5px solid #fff;
    border-radius: 5px;
}

.form input[type="submit"]:hover {
    background-color: #00b30f;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
}

/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    .form {
        padding: 2%; /* Reduce padding */
        border-radius: 10px; /* Reduce border radius */
        font-size: 16px; /* Reduce font size */
    }

    .form input[type="text"],
    .form input[type="password"],
    .form input[type="email"],
    .form input[type="submit"] {
        padding: 1%; /* Reduce padding */
        font-size: 14px; /* Reduce font size */
        background-color: #1b1b1b;
    }
}
