/* styles-login.css */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

main {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%; /* Changed from 100% to 90% for better padding on mobile */
    max-width: 400px;
}

h2 {
    margin-bottom: 24px;
    color: #202124;
    text-align: center;
    font-size: 24px; /* Increased font size for better visibility */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    padding: 14px 16px; /* Increased padding for better touch targets */
    margin-bottom: 20px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    width: 100%; /* Ensure inputs take full width */
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #1a73e8;
    outline: none;
}

input[type="submit"] {
    padding: 14px 16px; /* Increased padding for better touch targets */
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Ensure button takes full width */
}

input[type="submit"]:hover {
    background-color: #1669c1;
}

.error-message {
    color: #d93025;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    main {
        padding: 30px 20px;
        width: 95%; /* Increased width to fit better on smaller screens */
    }

    h2 {
        font-size: 22px; /* Slightly smaller but still readable */
    }

    label {
        font-size: 15px; /* Increased for better readability */
    }

    input[type="text"],
    input[type="password"],
    input[type="submit"] {
        font-size: 16px;
        padding: 12px 14px;
    }
}
