/* Reset default styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling with a subtle gradient background */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login heading */
.login-head {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Login form container */
.login-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Input fields */
.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #f9f9fb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.login-form input::placeholder {
    color: #777;
    font-weight: 400;
}

/* Remove <br> spacing and rely on flexbox */
.login-form br {
    display: none;
}

/* Submit button */
.login-form button {
    padding: 12px;
    background: #4a90e2;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.login-form button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.login-form button:focus {
    outline: 3px solid #357abd;
    outline-offset: 2px;
}

/* Error message */


/* Responsive design */
@media (max-width: 480px) {
    .login-head {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .login-form {
        padding: 1.5rem;
        max-width: 90%;
    }

    .login-form input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .login-form button {
        padding: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-head {
        font-size: 1.8rem;
    }

    .login-form {
        padding: 1.2rem;
    }

    .login-form input {
        font-size: 0.9rem;
    }

    .login-form button {
        font-size: 0.9rem;
    }
}