/* Base styles */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    line-height: 1.5; /* Adjusted for better readability */
    min-height: 100vh; /* Ensures full viewport height */
    background: #f3f3f3;
    flex-direction: column;
    margin: 0;
}

.main {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 15px; /* Adjusted padding for better spacing */
    transition: transform 0.2s;
    width: 90%;
    max-width: 500px; /* Ensures it doesn't exceed 500px on larger screens */
    text-align: center;
    box-sizing: border-box; /* Ensures padding and border are included in element's total width and height */
}

h1 {
    color: rgb(30, 159, 171);
    margin-bottom: 20px; /* Adds spacing below the heading */
}

label {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
    color: #555;
    font-weight: bold;
}

input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: none;
    color: white;
    cursor: pointer;
    background-color: rgb(30, 159, 171);
    width: 100%;
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .main {
        width: 95%; /* Adjust width for smaller screens */
        padding: 20px; /* Add more padding for mobile */
    }
    
    button {
        font-size: 14px; /* Slightly smaller font size on smaller screens */
        padding: 12px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .main {
        width: 100%; /* Full width on very small screens */
        padding: 10px; /* Reduce padding */
    }
    
    button {
        font-size: 14px; /* Maintain a readable font size */
        padding: 10px; /* Reduce padding */
    }
}