body {
    font-family: "Google Sans", sans-serif;
    min-height: 100vh; /* Changed from 90vh so it adapts when mobile keyboards open */
    justify-content: center;
    background-color: #f1f5f9;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Crucial: ensures 100% width doesn't overflow screen due to padding */
}

.login-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    display: block;
}

.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    font-size: 14px; 
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    font-size: 16px; /* 16px is required to stop iOS Safari from auto-zooming on focus */
}

.form-control:focus { 
    outline: none; 
    border-color: #000; 
}

.btn-login {
    background-color: #000;
    color: white;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* --- Mobile View Adjustments --- */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 24px 20px; /* Reclaims screen space on small devices */
        border-radius: 8px;
    }

    .login-brand {
        font-size: 1.75rem; /* Scales down logo slightly */
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }
}