/* Centering the login container */ body { background-color: #f0f0f0; /* Light grey background for the whole page */ display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: Arial, sans-serif; } /* Styling the container that holds the login form */ .login-container { background-color: #fff; /* White background for the login form */ padding: 30px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow effect */ width: 300px; text-align: center; } /* Styling the title */ .login-container h1 { margin-bottom: 20px; font-size: 24px; color: #333; } /* Styling input fields */ .login-container input[type="text"], .login-container input[type="password"] { width: 100%; /* Full width of container */ padding: 10px; margin: 10px 0; border: 1px solid #ccc; /* Light grey border */ border-radius: 4px; /* Rounded corners */ box-sizing: border-box; } /* Styling the login button */ .login-container button { background-color: #4CAF50; /* Green background */ color: white; padding: 10px; width: 100%; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } .login-container button:hover { background-color: #45a049; /* Darker green on hover */ } /* Responsive design: ensure the form looks good on smaller screens */ @media (max-width: 400px) { .login-container { width: 90%; /* Make container smaller on narrow screens */ } }