/* Reset and base styles */
body, html {
    margin: 0 auto;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    min-height: 100vh; /* Ensures the body takes at least the height of the viewport */
}

*, *:before, *:after {
    box-sizing: border-box; /* corrected from inherit for consistency */
}

/* Navigation Bar */
nav {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav .logo strong {
    font-size: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #0056b3;
}

/* Sign Up Form Styles */
.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
    max-width: 600px;
    margin: 20px auto; /* Adjusted for vertical centering */
    max-height: 90vh; /* Prevents the container from exceeding the viewport height */
    overflow-y: auto; /* Allows scrolling within the form if it exceeds the viewport height */
}


.form-group label {
    display: block;
    margin-bottom: .5rem;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem; /* Space between inputs */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button[type="submit"] {
    width: 100%; /* Full width */
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
/* Adjustments for smaller screens to minimize space usage */

@media screen and (max-width: 768px) {
    .container {
        width: 95%; /* Allows the form to use more width on smaller screens */
        margin-top: 10px; /* Reduces vertical spacing */
        margin-bottom: 10px; /* Reduces vertical spacing */
    }

    nav, footer {
        padding: 10px 5px; /* Reduces padding to save vertical space */
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}
