body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling in mobile view */
}

.container {
    background: #fff;
    padding: 15px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    margin-top: 0; /* Ensure no extra space at the top */
}

h2 {
    text-align: center;
    color: #333;
    margin: 0; /* Ensure no extra space at the top and bottom */
    padding-top: 0; /* Ensure no extra space at the top */
    padding-bottom: 10px; /* Add some padding at the bottom */
}

label {
    display: block;
    margin-bottom: 5px; /* Reduced margin */
    font-weight: bold;
    color: #333;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px; /* Reduced padding */
    margin-bottom: 10px; /* Reduced margin */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    background-color: #000080; /* Changed to navy blue */
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #000060; /* Darker shade of navy blue for hover */
}

p {
    text-align: center;
    color: #333;
    margin-top: 10px; /* Reduced margin */
}

p a {
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.signup-image {
    display: block;
    max-width: 100%;
    max-height: 200px; /* Set the max-height to reduce the image height */
    height: auto;
    margin: 20px auto 0;
}

/* Hide the 000webhost branding link */
a[href*="www.000webhost.com"] {
    display: none;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    body {
        overflow: auto; /* Re-enable scrolling for tablets and larger mobile devices */
    }
    
    .container {
        padding: 15px; /* Reduced padding */
        margin-top: 0; /* Ensure no extra space at the top */
    }
}

@media (max-width: 480px) {
    body {
        overflow: auto; /* Re-enable scrolling for smaller mobile devices */
    }
    
    .container {
        padding: 10px; /* Reduced padding */
        margin-top: 0; /* Ensure no extra space at the top */
    }

    h2 {
        margin-top: 0; /* Ensure no extra space at the top */
    }

    input[type="text"], input[type="password"] {
        padding: 8px; /* Reduced padding */
        font-size: 1em;
    }

    input[type="submit"] {
        padding: 8px; /* Reduced padding */
        font-size: 1em;
    }
}
